Commit 604f9a90 by Pat Haugen Committed by Pat Haugen

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
parent 660820d1
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> 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
* tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
...@@ -644,8 +644,10 @@ find_replaceable_in_bb (temp_expr_table_p tab, basic_block bb) ...@@ -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 def variable has the same root variable as something in the
substitution list, or the def and use span a call such that substitution list, or the def and use span a call such that
we'll expand lifetimes across a call. */ we'll expand lifetimes across a call. */
if (gimple_has_volatile_ops (stmt) || same_root_var || if (gimple_has_volatile_ops (stmt) || same_root_var
tab->call_cnt[ver] != cur_call_cnt) || (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); finished_with_expr (tab, ver, true);
else else
mark_replaceable (tab, use, stmt_replaceable); mark_replaceable (tab, use, stmt_replaceable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment