Don't try to make autoincs with the stack pointer
From-SVN: r36370
This commit is contained in:
parent
a210651e53
commit
24948cccee
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user