]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(jump_optimize, can_reach_end determination): A barrier can
authorDoug Evans <dje@gnu.org>
Tue, 2 May 1995 20:53:50 +0000 (20:53 +0000)
committerDoug Evans <dje@gnu.org>
Tue, 2 May 1995 20:53:50 +0000 (20:53 +0000)
follow the return insn.

From-SVN: r9564

gcc/jump.c

index c1509647e1704ec0afed875d20dbc0609bd558ad..4483c720fea32bbc13f0fd6d16d4f5fdeda0e7c3 100644 (file)
@@ -265,6 +265,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
                      then one of them follows the note.  */
                   || (GET_CODE (insn) == JUMP_INSN
                       && GET_CODE (PATTERN (insn)) == RETURN)
+                  /* A barrier can follow the return insn.  */
+                  || GET_CODE (insn) == BARRIER
                   /* Other kinds of notes can follow also.  */
                   || (GET_CODE (insn) == NOTE
                       && NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END)))
@@ -2093,6 +2095,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
                  then one of them follows the note.  */
               || (GET_CODE (insn) == JUMP_INSN
                   && GET_CODE (PATTERN (insn)) == RETURN)
+              /* A barrier can follow the return insn.  */
+              || GET_CODE (insn) == BARRIER
               /* Other kinds of notes can follow also.  */
               || (GET_CODE (insn) == NOTE
                   && NOTE_LINE_NUMBER (insn) != NOTE_INSN_FUNCTION_END)))