* [PATCH] Fix PR49344
@ 2011-06-10 12:35 Richard Guenther
0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2011-06-10 12:35 UTC (permalink / raw)
To: gcc-patches
This allegedly fixes PR49344.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
Richard.
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.
Index: gcc/tree-ssa-math-opts.c
===================================================================
--- gcc/tree-ssa-math-opts.c (revision 174891)
+++ gcc/tree-ssa-math-opts.c (working copy)
@@ -2174,7 +2174,7 @@ convert_mult_to_fma (gimple mul_stmt, tr
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, tr
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-10 12:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-10 12:35 [PATCH] Fix PR49344 Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).