This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]