patch from jfc to improve aliasing/scheduling

* mips.c (save_restore_insns): Set RTX_UNCHANGING_P in register
	save/restore MEM rtl.

From-SVN: r17559
This commit is contained in:
John F. Carr 1998-01-30 10:31:34 -08:00 committed by Jim Wilson
parent 6209c7e96b
commit 4b526a9a94
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Jan 30 18:30:03 1998 John F Carr <jfc@mit.edu>
* mips.c (save_restore_insns): Set RTX_UNCHANGING_P in register
save/restore MEM rtl.
Fri Jan 30 09:08:16 1998 Jeffrey A Law (law@cygnus.com)
* configure.in: Check for declaration of abort.

View File

@ -5802,6 +5802,7 @@ save_restore_insns (store_p, large_reg, large_offset, file)
rtx mem_rtx = gen_rtx (MEM, word_mode,
gen_rtx (PLUS, Pmode, base_reg_rtx,
GEN_INT (gp_offset - base_offset)));
RTX_UNCHANGING_P (mem_rtx) = 1;
/* The mips16 does not have an instruction to load
$31, so we load $7 instead, and work things out
@ -6006,6 +6007,7 @@ save_restore_insns (store_p, large_reg, large_offset, file)
rtx mem_rtx = gen_rtx (MEM, sz,
gen_rtx (PLUS, Pmode, base_reg_rtx,
GEN_INT (fp_offset - base_offset)));
RTX_UNCHANGING_P (mem_rtx) = 1;
if (store_p)
{