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] tree-ssa-phiopt.c: Fix a typo.


Hi,

Attached is a patch to fix a typo that was made when we had a
transition from EDGE_COUNT (...) == 1 to single_succ_edge_p.
Specifically, We had a diff like so.

       /* Make sure that bb1 is just a fall through.  */
-      if (EDGE_COUNT (bb1->succs) > 1
+      if (!single_succ_p (bb1) > 1

Tested on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>

	PR tree-optimization/21116
	* tree-ssa-phiopt.c: Fix a typo.

Index: tree-ssa-phiopt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-phiopt.c,v
retrieving revision 2.33
diff -u -d -p -r2.33 tree-ssa-phiopt.c
--- tree-ssa-phiopt.c	20 Apr 2005 00:45:43 -0000	2.33
+++ tree-ssa-phiopt.c	20 Apr 2005 03:55:50 -0000
@@ -202,7 +202,7 @@ tree_ssa_phiopt (void)
       e1 = EDGE_SUCC (bb1, 0);
 
       /* Make sure that bb1 is just a fall through.  */
-      if (!single_succ_p (bb1) > 1
+      if (!single_succ_p (bb1)
 	  || (e1->flags & EDGE_FALLTHRU) == 0)
         continue;
 


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