OSDN Git Service

* cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Apr 2002 06:41:38 +0000 (06:41 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 Apr 2002 06:41:38 +0000 (06:41 +0000)
        for fallthru search.

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

gcc/ChangeLog
gcc/cfgrtl.c

index a9ddd49..e4b5474 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-26  Richard Henderson  <rth@redhat.com>
+
+       * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
+       for fallthru search.
+
 2002-04-26  Eric Christopher  <echristo@redhat.com>
 
        PR optimization/3700
index a56eea2..f5a8238 100644 (file)
@@ -1104,8 +1104,9 @@ tidy_fallthru_edge (e, b, c)
      So search through a sequence of barriers, labels, and notes for
      the head of block C and assert that we really do fall through.  */
 
-  if (next_real_insn (b->end) != next_real_insn (PREV_INSN (c->head)))
-    return;
+  for (q = NEXT_INSN (b->end); q != c->head; q = NEXT_INSN (q))
+    if (INSN_P (q))
+      return;
 
   /* Remove what will soon cease being the jump insn from the source block.
      If block B consisted only of this single jump, turn it into a deleted