diff options
author | Michael Meissner <meissner@redhat.com> | 2000-08-20 01:32:44 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2000-08-20 01:32:44 +0000 |
commit | 34c9e8480c6a0ace2477e48179650e615adee3a1 (patch) | |
tree | a6a2fafde10fc98188ff7dd2de06cc5abe56288f /gcc/ifcvt.c | |
parent | f1e42c8110b5089084f9739211b8f303cf884600 (diff) | |
download | gcc-34c9e8480c6a0ace2477e48179650e615adee3a1.zip gcc-34c9e8480c6a0ace2477e48179650e615adee3a1.tar.gz gcc-34c9e8480c6a0ace2477e48179650e615adee3a1.tar.bz2 |
Make sure THEN block has any insns at before testing for indirect jump
From-SVN: r35813
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 3215f6c..901bd42 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1510,10 +1510,13 @@ find_if_block (test_bb, then_edge, else_edge) { rtx last_insn = then_bb->end; - if (GET_CODE (last_insn) == NOTE) - last_insn = prev_nonnote_insn (last_insn); + while (last_insn + && GET_CODE (last_insn) == NOTE + && last_insn != then_bb->head) + last_insn = PREV_INSN (last_insn); - if (GET_CODE (last_insn) == JUMP_INSN + if (last_insn + && GET_CODE (last_insn) == JUMP_INSN && ! simplejump_p (last_insn)) return FALSE; |