diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-01-19 13:39:42 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-01-19 13:39:42 +0100 |
commit | d6600130faf0a670610f412c88dd3614be5886c0 (patch) | |
tree | c6ad4641a1c864fffb3ddd27da269b03b2325c2f /gcc/tree-outof-ssa.c | |
parent | 2178b0f93ae3ae2b2951e026e3f7857780cf2649 (diff) | |
download | gcc-d6600130faf0a670610f412c88dd3614be5886c0.tar.gz |
re PR tree-optimization/42719 ("-fcompare-debug failure" with "-O2 -ftracer")
PR tree-optimization/42719
* tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
stmt uses.
* gcc.dg/pr42719.c: New test.
From-SVN: r156038
Diffstat (limited to 'gcc/tree-outof-ssa.c')
-rw-r--r-- | gcc/tree-outof-ssa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index a82cec824fd..32aa464948b 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -956,6 +956,8 @@ trivially_conflicts_p (basic_block bb, tree result, tree arg) FOR_EACH_IMM_USE_FAST (use, imm_iter, result) { gimple use_stmt = USE_STMT (use); + if (is_gimple_debug (use_stmt)) + continue; /* Now, if there's a use of RESULT that lies outside this basic block, then there surely is a conflict with ARG. */ if (gimple_bb (use_stmt) != bb) |