diff options
author | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-28 14:11:12 +0000 |
---|---|---|
committer | amacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-28 14:11:12 +0000 |
commit | b7b667b4b2033265b7459e4a5b03f122ca0763d7 (patch) | |
tree | 2ac42e97013d52641bcf466a25422d9c930d35b5 | |
parent | ae372c0d9d660720cd0aac952917d3d7d5e1d97e (diff) | |
download | gcc-b7b667b4b2033265b7459e4a5b03f122ca0763d7.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205485 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-prop.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-propagate.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 777fe094d7d..507f8627315 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 2254d0de421..712dab76c50 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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; diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index da583fdc6aa..783b6513e30 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -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; |