summaryrefslogtreecommitdiffstats
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-28 17:29:32 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-28 17:29:32 +0000
commitb926fe9ee88d1a9df43d5d190443c1c24b12174d (patch)
tree450b4c7ffee3bcaac4b1ef675287d4a77bee6500 /gcc/tree-ssa-loop-im.c
parented0ba13964a7af79ebb362d47a86ffe4b0133d71 (diff)
downloadppe42-gcc-b926fe9ee88d1a9df43d5d190443c1c24b12174d.tar.gz
ppe42-gcc-b926fe9ee88d1a9df43d5d190443c1c24b12174d.zip
* tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
Skip constant arguments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88237 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r--gcc/tree-ssa-loop-im.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index c7a60768ee9..e6b507ef27a 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -982,8 +982,9 @@ single_reachable_address (struct loop *loop, tree stmt,
case PHI_NODE:
for (i = 0; i < (unsigned) PHI_NUM_ARGS (stmt); i++)
- maybe_queue_var (PHI_ARG_DEF (stmt, i), loop,
- seen, queue, &in_queue);
+ if (TREE_CODE (PHI_ARG_DEF (stmt, i)) == SSA_NAME)
+ maybe_queue_var (PHI_ARG_DEF (stmt, i), loop,
+ seen, queue, &in_queue);
break;
default:
OpenPOWER on IntegriCloud