This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]