aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dce.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2009-10-20 08:37:26 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2009-10-20 10:37:26 +0200
commit717f4048cd7e5d2ff7beb9276c0e09b4cb4d2faa (patch)
treeadd91b52319e180883f7ad93b54060f911aaac64 /gcc/tree-ssa-dce.c
parent421b1e6b16e2cba4037fc7ceb6962d950bfe2873 (diff)
downloadgcc-717f4048cd7e5d2ff7beb9276c0e09b4cb4d2faa.zip
gcc-717f4048cd7e5d2ff7beb9276c0e09b4cb4d2faa.tar.gz
gcc-717f4048cd7e5d2ff7beb9276c0e09b4cb4d2faa.tar.bz2
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
Diffstat (limited to 'gcc/tree-ssa-dce.c')
-rw-r--r--gcc/tree-ssa-dce.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dce.c b/gcc/tree-ssa-dce.c
index 7dd07c1..f0135a9 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))
{