diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-05-11 07:25:56 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-05-11 07:25:56 -0400 |
commit | 13b8df746d5d9a138a650a8b261bcb3de811dcbe (patch) | |
tree | bafbdc1c81e985249e41f893d7fa020e871d81e2 /gcc | |
parent | 344ba054f0d9d62f3b4eb26ddea335756e53d887 (diff) | |
download | gcc-13b8df746d5d9a138a650a8b261bcb3de811dcbe.zip gcc-13b8df746d5d9a138a650a8b261bcb3de811dcbe.tar.gz gcc-13b8df746d5d9a138a650a8b261bcb3de811dcbe.tar.bz2 |
(mostly_true_jump): Jump is forward if TARGET_LABEL is zero; don't try
to get INSN_CODE of zero.
From-SVN: r4424
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/reorg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index e652225..82a5337 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -1,5 +1,5 @@ /* Perform instruction reorganizations for delay slot filling. - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 1993 Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@nyu.edu). Hacked by Michael Tiemann (tiemann@cygnus.com). @@ -1337,7 +1337,8 @@ mostly_true_jump (jump_insn, condition) /* Predict backward branches usually take, forward branches usually not. If we don't know whether this is forward or backward, assume the branch will be taken, since most are. */ - return (INSN_UID (jump_insn) > max_uid || INSN_UID (target_label) > max_uid + return (target_label == 0 || INSN_UID (jump_insn) > max_uid + || INSN_UID (target_label) > max_uid || (uid_to_ruid[INSN_UID (jump_insn)] > uid_to_ruid[INSN_UID (target_label)]));; } |