diff options
author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-12 17:54:19 +0000 |
---|---|---|
committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-12 17:54:19 +0000 |
commit | c87aba630389d4463e9131b703e81f45508c54f8 (patch) | |
tree | 138aeea913bbb6d58792f66b31195c2783d7bac7 /gcc/flow.c | |
parent | 522d92b8df71d91a0b5da34dbe6f7a75f24021ee (diff) | |
download | gcc-c87aba630389d4463e9131b703e81f45508c54f8.tar.gz |
Don't try to make autoincs with the stack pointer
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36370 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index 12005d3b0fa..900e0284991 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -5699,6 +5699,7 @@ try_pre_increment_1 (pbi, insn) int regno = REGNO (SET_DEST (x)); rtx y = pbi->reg_next_use[regno]; if (y != 0 + && SET_DEST (x) != stack_pointer_rtx && BLOCK_NUM (y) == BLOCK_NUM (insn) /* Don't do this if the reg dies, or gets set in y; a standard addressing mode would be better. */ |