aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2004-07-13 03:03:21 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2004-07-13 01:03:21 +0000
commit066a03440a9bc7cbe8cbd364ee43ed8704561b25 (patch)
tree13cf603d02b1b0e93d89cf5518055dbacfd7169c
parent7aded9447701b0984810de857a6f1fc233e3b6aa (diff)
downloadgcc-066a03440a9bc7cbe8cbd364ee43ed8704561b25.zip
gcc-066a03440a9bc7cbe8cbd364ee43ed8704561b25.tar.gz
gcc-066a03440a9bc7cbe8cbd364ee43ed8704561b25.tar.bz2
re PR tree-optimization/16461 (ICE: expected ssa_name, have integer_cst in independent_of_stmt_p, at tree-tailcall.c:210)
PR tree-optimization/16461 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name arguments of phi nodes. From-SVN: r84595
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-tailcall.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 66da58a..a0bdea8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
+
+ PR tree-optimization/16461
+ * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
+ arguments of phi nodes.
+
2004-07-12 Devang Patel <dpatel@apple.com>
* doc/invoke.texi (Darwin Options): Document -gused and -gfull.
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c
index fdd010f..f69bf34 100644
--- a/gcc/tree-tailcall.c
+++ b/gcc/tree-tailcall.c
@@ -238,6 +238,11 @@ independent_of_stmt_p (tree expr, tree at, block_stmt_iterator bsi)
abort ();
expr = PHI_ARG_DEF_FROM_EDGE (at, e);
+ if (TREE_CODE (expr) != SSA_NAME)
+ {
+ /* The value is a constant. */
+ break;
+ }
}
/* Unmark the blocks. */