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] for PR16461


Hello,

as Diego noted, tree-tailcall.c:independent_of_stmt_p must handle
non-SSA name arguments of phi nodes.

Bootstrapped & regtested on ia64.

Zdenek

	PR tree-optimization/16461
	* tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
	arguments of phi nodes.

Index: tree-tailcall.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-tailcall.c,v
retrieving revision 2.14
diff -c -3 -p -r2.14 tree-tailcall.c
*** tree-tailcall.c	8 Jul 2004 16:16:41 -0000	2.14
--- tree-tailcall.c	10 Jul 2004 16:55:20 -0000
*************** independent_of_stmt_p (tree expr, tree a
*** 238,243 ****
--- 238,245 ----
  	abort ();
  
        expr = PHI_ARG_DEF_FROM_EDGE (at, e);
+       if (is_gimple_min_invariant (expr))
+ 	break;
      }
  
    /* Unmark the blocks.  */


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