aboutsummaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-05-03 11:16:35 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2000-05-03 11:16:35 +0000
commitea49bef60422f4f59850c4d92a63b5b93e9d175c (patch)
tree3d32e0656c9c24183fdafac25bf3d79c9ce7a1fd /gcc/ifcvt.c
parent664fe7a8ac2413f67059880463cf7a5a85e2436f (diff)
downloadgcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.zip
gcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.tar.gz
gcc-ea49bef60422f4f59850c4d92a63b5b93e9d175c.tar.bz2
ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap.
* ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest whether address may trap. From-SVN: r33627
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index c1fc951..7595fcb 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -843,9 +843,9 @@ noce_try_cmove_arith (if_info)
}
/* ??? We could handle this if we knew that a load from A or B could
- not fault. This is true of stack memories or if we've already loaded
+ not fault. This is also true if we've already loaded
from the address along the path from ENTRY. */
- else if (GET_CODE (a) == MEM || GET_CODE (b) == MEM)
+ else if (may_trap_p (a) || may_trap_p (b))
return FALSE;
/* if (test) x = a + b; else x = c - d;