diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-03 11:16:35 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-03 11:16:35 +0000 |
commit | 8894f51f497e27133eec50c97efeedec1e719901 (patch) | |
tree | 3d32e0656c9c24183fdafac25bf3d79c9ce7a1fd /gcc/ifcvt.c | |
parent | ff72dfccaf2b74a8c07863f43ef63eb1ac1d6cfa (diff) | |
download | gcc-8894f51f497e27133eec50c97efeedec1e719901.tar.gz |
* ifcvt.c (noce_try_cmove_arith): Use may_trap_p to thest
whether address may trap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33627 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index c1fc951a059..7595fcbeb66 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; |