diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2004-07-27 07:27:12 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2004-07-27 07:27:12 +0000 |
commit | 45d09c02e544c4074aa4a69925c1fe547a0dd7a0 (patch) | |
tree | 3acb7007422c04dcb1bc209a9aeb6d560798c498 /gcc/predict.c | |
parent | dbe9c577763c34327150e88314c3f8b633f4be99 (diff) | |
download | gcc-45d09c02e544c4074aa4a69925c1fe547a0dd7a0.zip gcc-45d09c02e544c4074aa4a69925c1fe547a0dd7a0.tar.gz gcc-45d09c02e544c4074aa4a69925c1fe547a0dd7a0.tar.bz2 |
expr.h (canonicalize_condition, [...]): Add an int argument.
* expr.h (canonicalize_condition, get_condition): Add an int argument.
* gcse.c (fis_get_condition): Reimplement using get_condition, leaving
it to check whether the condition is still valid at the jump insn.
* ifcvt.c (noce_get_condition): Likewise.
(noce_get_alt_condition): Update call to canonicalize_condition.
* loop-iv.c (simplify_using_initial_values): Update call to
get_condition. Remove FIXME.
(check_simple_exit): Update call to get_condition.
* loop-unswitch.c (may_unswitch_on): Likewise.
* loop.c (check_dbra_loop): Likewise.
(canonicalize_condition, get_condition): Add an argument to say whether
the condition must still be valid at INSN.
(get_condition_for_loop): Update call to get_condition. Require that
the condition be valid at INSN.
* predict.c (estimate_probability): Update call to get_condition.
Remove unused earliest parameter.
(expected_value_to_br_prob): Update call to canonicalize_condition.
From-SVN: r85218
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index c92b27f..e55427d 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -636,7 +636,7 @@ estimate_probability (struct loops *loops_info) FOR_EACH_BB (bb) { rtx last_insn = BB_END (bb); - rtx cond, earliest; + rtx cond; edge e; if (! can_predict_insn_p (last_insn)) @@ -681,7 +681,7 @@ estimate_probability (struct loops *loops_info) } } - cond = get_condition (last_insn, &earliest, false); + cond = get_condition (last_insn, NULL, false, false); if (! cond) continue; @@ -1043,7 +1043,8 @@ expected_value_to_br_prob (void) (lt r70, r71) Could use cselib to try and reduce this further. */ cond = XEXP (SET_SRC (pc_set (insn)), 0); - cond = canonicalize_condition (insn, cond, 0, NULL, ev_reg, false); + cond = canonicalize_condition (insn, cond, 0, NULL, ev_reg, + false, false); if (! cond || XEXP (cond, 0) != ev_reg || GET_CODE (XEXP (cond, 1)) != CONST_INT) continue; |