Commit 13b8df74 by Richard Kenner

(mostly_true_jump): Jump is forward if TARGET_LABEL is zero; don't try

to get INSN_CODE of zero.

From-SVN: r4424
parent 344ba054
/* Perform instruction reorganizations for delay slot filling. /* 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). Contributed by Richard Kenner (kenner@nyu.edu).
Hacked by Michael Tiemann (tiemann@cygnus.com). Hacked by Michael Tiemann (tiemann@cygnus.com).
...@@ -1337,7 +1337,8 @@ mostly_true_jump (jump_insn, condition) ...@@ -1337,7 +1337,8 @@ mostly_true_jump (jump_insn, condition)
/* Predict backward branches usually take, forward branches usually not. If /* Predict backward branches usually take, forward branches usually not. If
we don't know whether this is forward or backward, assume the branch we don't know whether this is forward or backward, assume the branch
will be taken, since most are. */ 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 (jump_insn)]
> uid_to_ruid[INSN_UID (target_label)]));; > uid_to_ruid[INSN_UID (target_label)]));;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment