diff options
author | Jan Hubicka <jh@suse.cz> | 2001-06-10 00:39:25 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-06-09 22:39:25 +0000 |
commit | 4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5 (patch) | |
tree | c28f4818b4bed04584e0f35d196aab217d30a449 /gcc/ifcvt.c | |
parent | 5bb8dd28b87e7894d3dd5e03eacb09b975bbf0ca (diff) | |
download | gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.zip gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.tar.gz gcc-4db384c950ec85ca96e4bcaf7b00c36f2f6ccbd5.tar.bz2 |
predict.def: New file.
* predict.def: New file.
* predict.h: New file.
* predict.c: Include predict.h.
(predictor_info): New structure and array.
(predict_edge, predict_insn): Rewrite; make global.
(predict_edge_def, predict_insn_def): New global functions.
(dump_prediction, combine_predictions_for_insns): New
static functions.
(estimate_probability): Change calls to predict_edge
to predict_edge_def and calls to predict_insn to predict_insn_def;
combine probabilities.
(expected_value_to_br_prob): Behave as predictor.
* rtl.h (REG_BR_PRED): Update coment.
(invert_br_probabilities): New.
* jump.c: Include predict.h
(duplicate_loop_exit_test): Drop branch prediction notes.
(invert_jump): Use invert_br_probabilities.
* Makefile.in: Add dependancy on predict.h for jump and predict pass.
* ifcvt.c (dead_or_predicable): Use invert_br_probabilities.
* combine.c (distribute_notes): Handle BR_PRED.
From-SVN: r43115
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index b57cb13..4e3c43e 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -2410,11 +2410,7 @@ dead_or_predicable (test_bb, merge_bb, other_bb, new_dest, reversep) JUMP_LABEL (jump) = new_dest; if (reversep) - { - rtx note = find_reg_note (jump, REG_BR_PROB, NULL_RTX); - if (note) - XEXP (note, 0) = GEN_INT (REG_BR_PROB_BASE - INTVAL (XEXP (note, 0))); - } + invert_br_probabilities (jump); /* Move the insns out of MERGE_BB to before the branch. */ if (head != NULL) |