Commit dae957ae by Richard Guenther Committed by Richard Biener

re PR bootstrap/49344 (ICE in tree-flow-inline.h:745 while bootstrap)

2011-06-10  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/49344
	* tree-ssa-math-opts.c (convert_mult_to_fma): Use
	FOR_EACH_PHI_OR_STMT_USE.

From-SVN: r174902
parent a5b1779f
2011-06-10 Richard Guenther <rguenther@suse.de>
PR bootstrap/49344
* tree-ssa-math-opts.c (convert_mult_to_fma): Use
FOR_EACH_PHI_OR_STMT_USE.
2011-06-10 Jan Hubicka <jh@suse.cz>
* ipa-inline-transform.c (can_remove_node_now_p): Move out of...
......
......@@ -2174,7 +2174,7 @@ convert_mult_to_fma (gimple mul_stmt, tree op1, tree op2)
if (use_code == NEGATE_EXPR)
{
ssa_op_iter iter;
tree use;
use_operand_p usep;
result = gimple_assign_lhs (use_stmt);
......@@ -2185,8 +2185,8 @@ convert_mult_to_fma (gimple mul_stmt, tree op1, tree op2)
return false;
/* Make sure the multiplication isn't also used on that stmt. */
FOR_EACH_SSA_TREE_OPERAND (use, neguse_stmt, iter, SSA_OP_USE)
if (use == mul_result)
FOR_EACH_PHI_OR_STMT_USE (usep, neguse_stmt, iter, SSA_OP_USE)
if (USE_FROM_PTR (usep) == mul_result)
return false;
/* Re-validate. */
......
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