OSDN Git Service

PR tree-optimization/50587
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2011 09:06:38 +0000 (09:06 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Oct 2011 09:06:38 +0000 (09:06 +0000)
* tree-ssa-reassoc.c (init_range_entry): Stop iterating when
arg0 is not a SSA_NAME.

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

gcc/ChangeLog
gcc/tree-ssa-reassoc.c

index 70c18ba..c39a1a7 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-03  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/50587
+       * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
+       arg0 is not a SSA_NAME.
+
 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * ipa-inline-analysis.c (MAX_TIME): Update comment.
index f7c21e7..554ba3a 100644 (file)
@@ -1648,6 +1648,8 @@ init_range_entry (struct range_entry *r, tree exp)
 
       code = gimple_assign_rhs_code (stmt);
       arg0 = gimple_assign_rhs1 (stmt);
+      if (TREE_CODE (arg0) != SSA_NAME)
+       break;
       arg1 = gimple_assign_rhs2 (stmt);
       exp_type = TREE_TYPE (exp);
       loc = gimple_location (stmt);