Skip to content

Commit

Permalink
2013-11-28 Andrew MacLeod <amacleod@redhat.com>
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
amacleod committed Nov 28, 2013
1 parent ae372c0 commit b7b667b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion gcc/ipa-prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion gcc/tree-ssa-propagate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7b667b

Please sign in to comment.