diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2001-02-25 11:34:06 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-02-25 11:34:06 -0800 |
commit | 05cc23e8152a05136cfc32dfa1c9606171cb24f6 (patch) | |
tree | a22f2c2daa5bc0393efc4ea2dec8b6e6c7f035d8 /gcc/rtlanal.c | |
parent | 052d4b6cd7c5b318c7990194b83855bd64611736 (diff) | |
download | gcc-05cc23e8152a05136cfc32dfa1c9606171cb24f6.zip gcc-05cc23e8152a05136cfc32dfa1c9606171cb24f6.tar.gz gcc-05cc23e8152a05136cfc32dfa1c9606171cb24f6.tar.bz2 |
ifcvt.c (struct noce_if_info): Add test_bb.
* ifcvt.c (struct noce_if_info): Add test_bb.
(noce_get_alt_condition): New.
(noce_try_minmax, noce_try_abs): New.
(noce_operand_ok): New.
(noce_process_if_block): Use them.
* rtlanal.c (may_trap_p): NEG and ABS can never trap.
From-SVN: r40060
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 6e6ed8e..237382f 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2020,6 +2020,11 @@ may_trap_p (x) return 1; break; + case NEG: + case ABS: + /* These operations don't trap even with floating point. */ + break; + default: /* Any floating arithmetic may trap. */ if (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT) |