gimple-expr.h (is_gimple_constant): Reorder.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 13 May 2015 12:36:47 +0000 (12:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 13 May 2015 12:36:47 +0000 (12:36 +0000)
* gimple-expr.h (is_gimple_constant): Reorder.
* tree-ssa-propagate.c (before_dom_children): Use inline accessor.

From-SVN: r223156

gcc/ChangeLog
gcc/gimple-expr.h
gcc/tree-ssa-propagate.c

index 2f8a0205754ff4f1c1eea90803bfc0334df362ef..f85bbae4fda1d14d3a38dbd029ae4c22d2db450a 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gimple-expr.h (is_gimple_constant): Reorder.
+       * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
+
 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * combine.c (simplify_set): When generating a CC set, if the
index a50a90a959b1d41dcc4f102c2ae246d970abf0f2..ed23eb24bfc59a6db94faa8ee02423afd2f0d263 100644 (file)
@@ -136,9 +136,9 @@ is_gimple_constant (const_tree t)
     case INTEGER_CST:
     case REAL_CST:
     case FIXED_CST:
-    case STRING_CST:
     case COMPLEX_CST:
     case VECTOR_CST:
+    case STRING_CST:
       return true;
 
     default:
index e23da7094a4efb4fcb51f87e8f91360e7253fc0b..cc2b1c4f48f3a79048ff6e85a4ba89a391cb59ae 100644 (file)
@@ -1246,9 +1246,7 @@ substitute_and_fold_dom_walker::before_dom_children (basic_block bb)
              && gimple_call_noreturn_p (stmt))
            stmts_to_fixup.safe_push (stmt);
 
-         if (is_gimple_assign (stmt)
-             && (get_gimple_rhs_class (gimple_assign_rhs_code (stmt))
-                 == GIMPLE_SINGLE_RHS))
+         if (gimple_assign_single_p (stmt))
            {
              tree rhs = gimple_assign_rhs1 (stmt);