From 717f4048cd7e5d2ff7beb9276c0e09b4cb4d2faa Mon Sep 17 00:00:00 2001 From: Alexandre Oliva <aoliva@redhat.com> Date: Tue, 20 Oct 2009 08:37:26 +0000 Subject: [PATCH] tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard the removal of a debug stmt as a significant change. * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard the removal of a debug stmt as a significant change. From-SVN: r153007 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-dce.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1bc1f04dc7f5..17e513fd9594 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-20 Alexandre Oliva <aoliva@redhat.com> + + * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard + the removal of a debug stmt as a significant change. + 2009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com> * config/s390/s390.md: Added agen condition to operand diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c index 7dd07c1ca2c7..f0135a9c42d5 100644 --- a/gcc/tree-ssa-dce.c +++ b/gcc/tree-ssa-dce.c @@ -1129,8 +1129,9 @@ eliminate_unnecessary_stmts (void) /* If GSI is not necessary then remove it. */ if (!gimple_plf (stmt, STMT_NECESSARY)) { + if (!is_gimple_debug (stmt)) + something_changed = true; remove_dead_stmt (&gsi, bb); - something_changed = true; } else if (is_gimple_call (stmt)) { -- GitLab