From: Richard Henderson Date: Sat, 27 Apr 2002 06:41:38 +0000 (-0700) Subject: cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search. X-Git-Tag: releases/gcc-3.3.0~5444 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c0a0632bca68c00acf45fc5ccc6811a652d1406;p=thirdparty%2Fgcc.git cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search. * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search. From-SVN: r52826 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9ddd4901a83..e4b54744f9e5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-04-26 Richard Henderson + + * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn + for fallthru search. + 2002-04-26 Eric Christopher PR optimization/3700 diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index a56eea2e9400..f5a82383a002 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -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