diff options
author | Jan Hubicka <jh@suse.cz> | 2001-01-05 16:34:39 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-01-05 15:34:39 +0000 |
commit | 90a747032a88e99270a882e1d33a87fd55ef8520 (patch) | |
tree | d2b56b14315659a1bb2e03a1ca419f699c2cffb1 /gcc/predict.c | |
parent | bfa2cb330e3f3e8f72df900b60af4b9886553f47 (diff) | |
download | gcc-90a747032a88e99270a882e1d33a87fd55ef8520.zip gcc-90a747032a88e99270a882e1d33a87fd55ef8520.tar.gz gcc-90a747032a88e99270a882e1d33a87fd55ef8520.tar.bz2 |
simplify-rtx.c (cfc_args): add "unordered" field.
* simplify-rtx.c (cfc_args): add "unordered" field.
(check_fold_consts): Set unordered field.
(simplify_relational_operation): Simplify the unordered
comparisons.
* reg-stack.c (swap_rtx_condition): Ensure that the transformation
is valid.
* emit-rtl.c (try_split): Fix code to mark labels.
* jump.c (mark_jump_label): Make global.
* rtl.h (mark_jump_label): Declare.
* predict.c (estimate_probability): Handle unordred comparisons.
From-SVN: r38711
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 57595ed..d598ef9 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1,5 +1,5 @@ /* Branch prediction routines for the GNU compiler. - Copyright (C) 2000 Free Software Foundation, Inc. + Copyright (C) 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -183,11 +183,19 @@ estimate_probability (loops_info) goto emitnote; case EQ: + case UNEQ: prob = PROB_UNLIKELY; goto emitnote; case NE: + case LTGT: prob = PROB_LIKELY; goto emitnote; + case ORDERED: + prob = PROB_LIKELY; + goto emitnote; + case UNORDERED: + prob = PROB_UNLIKELY; + goto emitnote; case LE: case LT: if (XEXP (cond, 1) == const0_rtx) |