From 3598cabdae52826b408cc2fdff9982bc2633c730 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 6 Jun 2011 13:40:09 +0000 Subject: [PATCH] * cprop.c (local_cprop_pass): Don't set changed for debug insns. From-SVN: r174700 --- gcc/ChangeLog | 4 ++++ gcc/cprop.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c45fe7211b3..a06eb75fc0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-06-06 Alexandre Oliva + + * cprop.c (local_cprop_pass): Don't set changed for debug insns. + 2011-06-06 Alexandre Oliva * dce.c (reset_unmarked_insns_debug_uses): New. diff --git a/gcc/cprop.c b/gcc/cprop.c index 24f4a84d561..b7b17b19387 100644 --- a/gcc/cprop.c +++ b/gcc/cprop.c @@ -1223,7 +1223,8 @@ local_cprop_pass (void) { if (do_local_cprop (reg_use_table[i], insn)) { - changed = true; + if (!DEBUG_INSN_P (insn)) + changed = true; break; } }