diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-08-24 09:02:32 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-08-24 09:02:32 +0000 |
commit | 30c3267cef53e13862011b293b07593c135b6361 (patch) | |
tree | 22997f9fe52c32bd0167220a4802b6600ceed6f2 /gcc/rtlanal.c | |
parent | 791996d16d3e154f3551c2754e26882e14176303 (diff) | |
download | gcc-30c3267cef53e13862011b293b07593c135b6361.tar.gz |
* rtlanal.c (may_trap_p): Simplify an integer comparison.
From-SVN: r70761
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 18173ebf297..6509f4f92bf 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2388,9 +2388,7 @@ may_trap_p (rtx x) || (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT && flag_trapping_math)) return 1; - /* This was const0_rtx, but by not using that, - we can link this file into other programs. */ - if (GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0) + if (XEXP (x, 1) == const0_rtx) return 1; break; |