This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] stmt.c: Update a comment.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Oct 2004 13:25:50 -0400 (EDT)
- Subject: [patch] stmt.c: Update a comment.
Hi,
Attached is a patch to update a comment.
We no longer special-case for a constant index; we simply choose to
generate a binary decision tree for it.
Committed as obvious.
Kazu Hirata
2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
* stmt.c (expand_case): Update a comment.
Index: stmt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/stmt.c,v
retrieving revision 1.405
diff -u -p -r1.405 stmt.c
--- stmt.c 26 Oct 2004 17:19:39 -0000 1.405
+++ stmt.c 26 Oct 2004 17:20:40 -0000
@@ -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.