diff options
author | Richard Guenther <rguenther@suse.de> | 2011-06-10 12:18:55 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-06-10 12:18:55 +0000 |
commit | dae957ae7563f1cba453d1c785a893eb8bf13d3d (patch) | |
tree | 9e2403e7f12f149f9013a92219d8e0d52231625f /gcc | |
parent | a5b1779f81ebfa6d13f0e5116234c8282d71c46d (diff) | |
download | gcc-dae957ae7563f1cba453d1c785a893eb8bf13d3d.zip gcc-dae957ae7563f1cba453d1c785a893eb8bf13d3d.tar.gz gcc-dae957ae7563f1cba453d1c785a893eb8bf13d3d.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74b3e43..d64b513 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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... diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index e6b5857..5b82fb0 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. */ |