diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-05 20:35:53 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-05 20:35:53 +0000 |
commit | fc1ef759866615690d7517691c98bb319b12bad3 (patch) | |
tree | a0824028e49cab21fc8f6f163e744e8b2fa0d0d8 /gcc/reorg.c | |
parent | 88ce9a72f7915514b64f931fa5542080b25759b4 (diff) | |
download | gcc-fc1ef759866615690d7517691c98bb319b12bad3.tar.gz |
Fix urgent bug
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14150 138bc75d-0d04-0410-961f-82ee72b054a4
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 3a5a7e94460..8d2c2a68b3c 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) |