Don't try to make autoincs with the stack pointer

From-SVN: r36370
This commit is contained in:
Bernd Schmidt 2000-09-12 17:54:19 +00:00 committed by Bernd Schmidt
parent a210651e53
commit 24948cccee
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-09-12 Bernd Schmidt <bernds@redhat.co.uk>
* flow.c (try_pre_increment_1): Don't do anything to sets of the stack
pointer.
2000-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (built_in_decls): New array.

View File

@ -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. */