This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix glitch in fma detection
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 7 Dec 2010 11:06:06 +0100 (CET)
- Subject: [PATCH] Fix glitch in fma detection
We forget to unlink virtual operands on the pow call we remove.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.
Richard.
2010-12-07 Richard Guenther <rguenther@suse.de>
* tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
virtual operands.
Index: gcc/tree-ssa-math-opts.c
===================================================================
*** gcc/tree-ssa-math-opts.c (revision 167499)
--- gcc/tree-ssa-math-opts.c (working copy)
*************** execute_optimize_widening_mul (void)
*** 1726,1731 ****
--- 1726,1732 ----
gimple_call_arg (stmt, 0),
gimple_call_arg (stmt, 0)))
{
+ unlink_stmt_vdef (stmt);
gsi_remove (&gsi, true);
release_defs (stmt);
if (gimple_purge_dead_eh_edges (bb))