From: Alexandre Oliva Date: Mon, 6 Jun 2011 13:40:09 +0000 (+0000) Subject: * cprop.c (local_cprop_pass): Don't set changed for debug insns. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3598cabdae52826b408cc2fdff9982bc2633c730;p=gcc.git * cprop.c (local_cprop_pass): Don't set changed for debug insns. From-SVN: r174700 --- 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; } }