re PR tree-optimization/60174 (ICE on ACATS cc3305a)
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 18 Feb 2014 23:15:27 +0000 (23:15 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 18 Feb 2014 23:15:27 +0000 (23:15 +0000)
PR tree-optimization/60174
* tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
statement of an SSA_NAME that occurs in an abnormal PHI node.

From-SVN: r207859

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

index d8c3d04..58b2b75 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR tree-optimization/60174
+       * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
+       statement of an SSA_NAME that occurs in an abnormal PHI node.
+
 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/60142
index b989ca5..df8cca8 100644 (file)
@@ -1840,7 +1840,8 @@ init_range_entry (struct range_entry *r, tree exp, gimple stmt)
 
       if (exp != NULL_TREE)
        {
-         if (TREE_CODE (exp) != SSA_NAME)
+         if (TREE_CODE (exp) != SSA_NAME
+             || SSA_NAME_OCCURS_IN_ABNORMAL_PHI (exp))
            break;
 
          stmt = SSA_NAME_DEF_STMT (exp);