]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR debug/54693
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Oct 2012 19:27:09 +0000 (19:27 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Oct 2012 19:27:09 +0000 (19:27 +0000)
* loop-unroll.c (loop_exit_at_end_p): Skip debug insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192958 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop-unroll.c

index 94dc1035bbfcdd5b0b1bd688220e093a23c8bb69..fd75ccd3a3eb2f9392ddea92070cf2c40d913a2e 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-29  Alexandre Oliva <aoliva@redhat.com>
+
+       PR debug/54693
+       * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
+
 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
 
        PR debug/54693
index 92e3c1a127cd522f987ea47c4c48123639105478..a539b42a3da045786449e837b5c0111763afb47a 100644 (file)
@@ -215,7 +215,7 @@ loop_exit_at_end_p (struct loop *loop)
   /* Check that the latch is empty.  */
   FOR_BB_INSNS (loop->latch, insn)
     {
-      if (INSN_P (insn))
+      if (NONDEBUG_INSN_P (insn))
        return false;
     }