From dae957ae7563f1cba453d1c785a893eb8bf13d3d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 10 Jun 2011 12:18:55 +0000 Subject: [PATCH] re PR bootstrap/49344 (ICE in tree-flow-inline.h:745 while bootstrap) 2011-06-10 Richard Guenther PR bootstrap/49344 * tree-ssa-math-opts.c (convert_mult_to_fma): Use FOR_EACH_PHI_OR_STMT_USE. From-SVN: r174902 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-math-opts.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74b3e43b05f..d64b513128a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-06-10 Richard Guenther + + PR bootstrap/49344 + * tree-ssa-math-opts.c (convert_mult_to_fma): Use + FOR_EACH_PHI_OR_STMT_USE. + 2011-06-10 Jan Hubicka * ipa-inline-transform.c (can_remove_node_now_p): Move out of... diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index e6b585723e9..5b82fb0aa43 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -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. */ -- 2.30.2