re PR bootstrap/46474 (powerpc64-linux bootstrap comparison failure in libcpp/symtab.o)

2010-11-15  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/46474
	* tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.

From-SVN: r166750
This commit is contained in:
Richard Guenther 2010-11-15 12:04:46 +00:00 committed by Richard Biener
parent 8679360a46
commit 76b14c29f8
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-15 Richard Guenther <rguenther@suse.de>
PR bootstrap/46474
* tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2010-11-15 Nick Clifton <nickc@redhat.com>
* config/stormy16/stormy16.c (direct_return): Do not generate a

View File

@ -1534,6 +1534,9 @@ convert_mult_to_fma (gimple mul_stmt)
use_stmt = USE_STMT (use_p);
if (is_gimple_debug (use_stmt))
continue;
/* For now restrict this operations to single basic blocks. In theory
we would want to support sinking the multiplication in
m = a*b;
@ -1603,10 +1606,14 @@ convert_mult_to_fma (gimple mul_stmt)
FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, mul_result)
{
gimple_stmt_iterator gsi = gsi_for_stmt (use_stmt);
enum tree_code use_code = gimple_assign_rhs_code (use_stmt);
enum tree_code use_code;
tree addop, mulop1, result = mul_result;
bool negate_p = false;
if (is_gimple_debug (use_stmt))
continue;
use_code = gimple_assign_rhs_code (use_stmt);
if (use_code == NEGATE_EXPR)
{
result = gimple_assign_lhs (use_stmt);