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:
parent
8679360a46
commit
76b14c29f8
|
@ -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>
|
2010-11-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config/stormy16/stormy16.c (direct_return): Do not generate a
|
* config/stormy16/stormy16.c (direct_return): Do not generate a
|
||||||
|
|
|
@ -1534,6 +1534,9 @@ convert_mult_to_fma (gimple mul_stmt)
|
||||||
|
|
||||||
use_stmt = USE_STMT (use_p);
|
use_stmt = USE_STMT (use_p);
|
||||||
|
|
||||||
|
if (is_gimple_debug (use_stmt))
|
||||||
|
continue;
|
||||||
|
|
||||||
/* For now restrict this operations to single basic blocks. In theory
|
/* For now restrict this operations to single basic blocks. In theory
|
||||||
we would want to support sinking the multiplication in
|
we would want to support sinking the multiplication in
|
||||||
m = a*b;
|
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)
|
FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, mul_result)
|
||||||
{
|
{
|
||||||
gimple_stmt_iterator gsi = gsi_for_stmt (use_stmt);
|
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;
|
tree addop, mulop1, result = mul_result;
|
||||||
bool negate_p = false;
|
bool negate_p = false;
|
||||||
|
|
||||||
|
if (is_gimple_debug (use_stmt))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
use_code = gimple_assign_rhs_code (use_stmt);
|
||||||
if (use_code == NEGATE_EXPR)
|
if (use_code == NEGATE_EXPR)
|
||||||
{
|
{
|
||||||
result = gimple_assign_lhs (use_stmt);
|
result = gimple_assign_lhs (use_stmt);
|
||||||
|
|
Loading…
Reference in New Issue