diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-05 20:35:53 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-05 20:35:53 +0000 |
commit | 7eb136d6cc3c9624f6cd6cee5aaefbb9c237f553 (patch) | |
tree | a0824028e49cab21fc8f6f163e744e8b2fa0d0d8 /gcc/reorg.c | |
parent | cb1009434066d5c1882d4c381cb79409a096ee72 (diff) | |
download | gcc-7eb136d6cc3c9624f6cd6cee5aaefbb9c237f553.zip gcc-7eb136d6cc3c9624f6cd6cee5aaefbb9c237f553.tar.gz gcc-7eb136d6cc3c9624f6cd6cee5aaefbb9c237f553.tar.bz2 |
Fix urgent bug
From-SVN: r14150
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index 3a5a7e9..8d2c2a6 100644 --- a/gcc/reorg.c +++ b/gcc/reorg.c @@ -1350,6 +1350,15 @@ mostly_true_jump (jump_insn, condition) int rare_dest = rare_destination (target_label); int rare_fallthrough = rare_destination (NEXT_INSN (jump_insn)); + /* CYGNUS LOCAL -- branch prediction */ + int expected = condjump_expect_p (jump_insn); + + if (expected > 0) + return 2; + else if (expected < 0) + return -1; + /* END CYGNUS LOCAL -- branch prediction */ + /* If branch probabilities are available, then use that number since it always gives a correct answer. */ if (flag_branch_probabilities) |