summaryrefslogtreecommitdiffstats
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-28 09:08:43 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-28 09:08:43 +0000
commitcf0ef17acddcb1bee8f92342c8b9155f51dfe4be (patch)
treea97d6756784a96491ad66c405b176122a6e2dcf4 /gcc/gcse.c
parent2f9a899dfff261158b6d8c2826cd223e18879d12 (diff)
downloadppe42-gcc-cf0ef17acddcb1bee8f92342c8b9155f51dfe4be.tar.gz
ppe42-gcc-cf0ef17acddcb1bee8f92342c8b9155f51dfe4be.zip
* gcse.c (delete_null_pointer_checks): Only record non-null info
for pseudos when examining stores. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index a40852dc2d8..30cb1b99400 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5076,7 +5076,8 @@ delete_null_pointer_checks (f)
not kill the nonnull property if it is derived from a MEM
appearing in a SET_DEST. */
if (GET_CODE (SET_DEST (set)) == MEM
- && GET_CODE (XEXP (SET_DEST (set), 0)) == REG)
+ && GET_CODE (XEXP (SET_DEST (set), 0)) == REG
+ && REGNO (XEXP (SET_SRC (set), 0)) >= FIRST_PSEUDO_REGISTER)
SET_BIT (nonnull_local[current_block],
REGNO (XEXP (SET_DEST (set), 0)));
}
OpenPOWER on IntegriCloud