This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] for PR16461
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 11 Jul 2004 22:01:40 +0200
- Subject: [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. */