diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-15 12:04:46 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-15 12:04:46 +0000 |
commit | 17a2c727dfb5f8c5e82b3e4c858e27eae1466a64 (patch) | |
tree | 66090e6dff74faa0911a884e8a6bc09bbac1d31c /gcc/tree-ssa-math-opts.c | |
parent | 0414db1bc3f71e0c839df51872cf159303c66dfb (diff) | |
download | gcc-17a2c727dfb5f8c5e82b3e4c858e27eae1466a64.tar.gz |
2010-11-15 Richard Guenther <rguenther@suse.de>
PR bootstrap/46474
* tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166750 138bc75d-0d04-0410-961f-82ee72b054a4
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 a2dfac6bb48..7837161e440 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); |