From: Kazu Hirata Date: Tue, 26 Oct 2004 17:25:32 +0000 (+0000) Subject: * stmt.c (expand_case): Update a comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2c5a1e912e708928f3f0697cb6248fd647bd85b;p=gcc.git * stmt.c (expand_case): Update a comment. From-SVN: r89591 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ac8e6ada3b..270f1bdbb4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-10-26 Kazu Hirata + + * stmt.c (expand_case): Update a comment. + 2004-10-26 Kazu Hirata * stmt.c (expand_case): Put an assertion that index_expr is diff --git a/gcc/stmt.c b/gcc/stmt.c index 3e866cde918..f9efbfee0b2 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2499,9 +2499,8 @@ expand_case (tree exp) if (MEM_P (index)) index = copy_to_reg (index); - /* If the index expression is not constant we generate - a binary decision tree to select the appropriate - target code. This is done as follows: + /* We generate a binary decision tree to select the + appropriate target code. This is done as follows: The list of cases is rearranged into a binary tree, nearly optimal assuming equal probability for each case.