aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-10-26 17:25:32 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-10-26 17:25:32 +0000
commitb2c5a1e912e708928f3f0697cb6248fd647bd85b (patch)
tree6540d67083af01170ae60c91361108799375546a /gcc
parent5100d1143a92622de0f8ea021c7c744400000d6f (diff)
downloadgcc-b2c5a1e912e708928f3f0697cb6248fd647bd85b.zip
gcc-b2c5a1e912e708928f3f0697cb6248fd647bd85b.tar.gz
gcc-b2c5a1e912e708928f3f0697cb6248fd647bd85b.tar.bz2
* stmt.c (expand_case): Update a comment.
From-SVN: r89591
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/stmt.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ac8e6a..270f1bd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
+ * stmt.c (expand_case): Update a comment.
+
+2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
+
* stmt.c (expand_case): Put an assertion that index_expr is
never INTEGER_CST. Don't special case for constant
index_expr.
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 3e866cd..f9efbfe 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.