]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to is_gimple_reg_type.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 28 Nov 2013 14:11:12 +0000 (14:11 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Thu, 28 Nov 2013 14:11:12 +0000 (14:11 +0000)
2013-11-28  Andrew MacLeod  <amacleod@redhat.com>

* tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
is_gimple_reg_type.
* ipa-prop.c (determine_known_aggregate_parts): Likewise.

From-SVN: r205485

gcc/ChangeLog
gcc/ipa-prop.c
gcc/tree-ssa-propagate.c

index 777fe094d7dea85528433eba902e5a90a5bb2157..507f8627315517b946c69c24f07940bac301a55f 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
+
+       * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
+       is_gimple_reg_type.
+       * ipa-prop.c (determine_known_aggregate_parts): Likewise.
+
 2013-11-28  Terry Guo  <terry.guo@arm.com>
 
        * config/arm/arm.c (v7m_extra_costs): New table.
index 2254d0de421db792ba599beb6f2f347dbb902053..712dab76c50db69aa437745772a5fd7b35d61204 100644 (file)
@@ -1424,7 +1424,7 @@ determine_known_aggregate_parts (gimple call, tree arg,
 
       lhs = gimple_assign_lhs (stmt);
       rhs = gimple_assign_rhs1 (stmt);
-      if (!is_gimple_reg_type (rhs)
+      if (!is_gimple_reg_type (TREE_TYPE (rhs))
          || TREE_CODE (lhs) == BIT_FIELD_REF
          || contains_bitfld_component_ref_p (lhs))
        break;
index da583fdc6aaf2335a2c749b269fca365e5e48be2..783b6513e30d235598a8bceaa92fc85497efc1aa 100644 (file)
@@ -667,7 +667,7 @@ valid_gimple_call_p (tree expr)
   for (i = 0; i < nargs; i++)
     {
       tree arg = CALL_EXPR_ARG (expr, i);
-      if (is_gimple_reg_type (arg))
+      if (is_gimple_reg_type (TREE_TYPE (arg)))
        {
          if (!is_gimple_val (arg))
            return false;