* cprop.c (local_cprop_pass): Don't set changed for debug insns.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 6 Jun 2011 13:40:09 +0000 (13:40 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 6 Jun 2011 13:40:09 +0000 (13:40 +0000)
From-SVN: r174700

gcc/ChangeLog
gcc/cprop.c

index c45fe72..a06eb75 100644 (file)
@@ -1,5 +1,9 @@
 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
 
+       * cprop.c (local_cprop_pass): Don't set changed for debug insns.
+
+2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
+
        * dce.c (reset_unmarked_insns_debug_uses): New.
        (delete_unmarked_insns): Skip debug insns.
        (prescan_insns_for_dce): Likewise.
index 24f4a84..b7b17b1 100644 (file)
@@ -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;
                        }
                    }