diff options
author | Pat Haugen <pthaugen@us.ibm.com> | 2010-10-20 18:57:15 +0000 |
---|---|---|
committer | Pat Haugen <pthaugen@gcc.gnu.org> | 2010-10-20 18:57:15 +0000 |
commit | 604f9a900c90b21ad33328e6a0b2fc1ba84dabd2 (patch) | |
tree | 875cff3be3d4fa3c5539a188d7c8e2fd8dc67a67 /gcc | |
parent | 660820d19f07155947f7899978e2d3d388b5b49f (diff) | |
download | gcc-604f9a900c90b21ad33328e6a0b2fc1ba84dabd2.zip gcc-604f9a900c90b21ad33328e6a0b2fc1ba84dabd2.tar.gz gcc-604f9a900c90b21ad33328e6a0b2fc1ba84dabd2.tar.bz2 |
tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over call for single operand expression.
* tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
call for single operand expression.
From-SVN: r165733
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-ssa-ter.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3a4cab..4e3c62c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-10-20 Pat Haugen <pthaugen@us.ibm.com> + + * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over + call for single operand expression. + 2010-10-20 Eric Botcazou <ebotcazou@adacore.com> * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges diff --git a/gcc/tree-ssa-ter.c b/gcc/tree-ssa-ter.c index 01eb7bb..0fb8028 100644 --- a/gcc/tree-ssa-ter.c +++ b/gcc/tree-ssa-ter.c @@ -644,8 +644,10 @@ find_replaceable_in_bb (temp_expr_table_p tab, basic_block bb) def variable has the same root variable as something in the substitution list, or the def and use span a call such that we'll expand lifetimes across a call. */ - if (gimple_has_volatile_ops (stmt) || same_root_var || - tab->call_cnt[ver] != cur_call_cnt) + if (gimple_has_volatile_ops (stmt) || same_root_var + || (tab->call_cnt[ver] != cur_call_cnt + && SINGLE_SSA_USE_OPERAND (SSA_NAME_DEF_STMT (use), SSA_OP_USE) + == NULL_USE_OPERAND_P)) finished_with_expr (tab, ver, true); else mark_replaceable (tab, use, stmt_replaceable); |