OSDN Git Service

* tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2004 17:29:32 +0000 (17:29 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Sep 2004 17:29:32 +0000 (17:29 +0000)
Skip constant arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88237 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-loop-im.c

index 5f482cc..e2f76be 100644 (file)
@@ -1,5 +1,10 @@
 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
 
+       * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
+       Skip constant arguments.
+
+2004-09-28  Diego Novillo  <dnovillo@redhat.com>
+
        * tree-ssa-alias.c (create_name_tags): If PTR points to a
        volatile type, mark the tag volatile.
        (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
index c7a6076..e6b507e 100644 (file)
@@ -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: