diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-15 12:04:46 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-15 12:04:46 +0000 |
commit | 76b14c29f81a3c7478a305831d2c3eaf530c12f2 (patch) | |
tree | 66090e6dff74faa0911a884e8a6bc09bbac1d31c /gcc/tree-ssa-math-opts.c | |
parent | 8679360a460eecbb6f89ab2111f8534b06461e11 (diff) | |
download | gcc-76b14c29f81a3c7478a305831d2c3eaf530c12f2.zip gcc-76b14c29f81a3c7478a305831d2c3eaf530c12f2.tar.gz gcc-76b14c29f81a3c7478a305831d2c3eaf530c12f2.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index a2dfac6..7837161 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -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); |