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]

[tree-ssa]: Fix PR optimization/14562


Bootstrapped and regtested on i686-pc-linux-gnu
Committed.

2004-03-16  Daniel Berlin  <dberlin@dberlin.org>

  PR optimization/14562
  * tree-ssa-pre.c (generate_expr_as_of_bb): Don't use names_match_p.
  (generate_vops_as_of_bb): Ditto.

Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-pre.c,v
retrieving revision 1.1.4.132
diff -u -3 -p -r1.1.4.132 tree-ssa-pre.c
--- tree-ssa-pre.c	25 Feb 2004 03:22:47 -0000	1.1.4.132
+++ tree-ssa-pre.c	16 Mar 2004 15:54:25 -0000
@@ -1219,7 +1223,7 @@ generate_expr_as_of_bb (tree expr, basic

       for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi))
 	{
-	  if (names_match_p (PHI_RESULT (phi), v))
+	  if (PHI_RESULT (phi) ==  v)
 	    {
 	      int opnum = opnum_of_phi (phi, pred->index);
 	      tree p = PHI_ARG_DEF (phi, opnum);
@@ -1254,7 +1258,7 @@ generate_vops_as_of_bb (tree expr, basic

       for (phi = phi_nodes (bb); phi; phi = TREE_CHAIN (phi))
 	{
-	  if (names_match_p (PHI_RESULT (phi), v))
+	  if (PHI_RESULT (phi) == v)
 	    {
 	      int opnum = opnum_of_phi (phi, pred->index);
 	      tree p = PHI_ARG_DEF (phi, opnum);


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