This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Another regmove cleanup patch
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Another regmove cleanup patch
- From: Toshiyasu Morita <tm at netcom dot com>
- Date: Fri, 2 Apr 1999 18:01:00 -0800 (PST)
HAVE_POST_INCREMENT and HAVE_POST_DECREMENT are evaluated at runtime
everywhere except in one place; here's a patch to fix this:
Fri Apr 2 17:50:22 1999 Toshiyasu Morita (tm@netcom.com)
* regmove.c (fixup_match_1): Consistently evaluate
HAVE_POST_INCREMENT and HAVE_POST_DECREMENT.
*** regmove.c.bak Fri Apr 2 17:46:36 1999
--- regmove.c Fri Apr 2 17:47:36 1999
***************
*** 1890,1901 ****
rtx pat = PATTERN (insn);
if (src_note)
remove_note (overlap, src_note);
! #if defined (HAVE_POST_INCREMENT) || defined (HAVE_POST_DECREMENT)
! if (code == PLUS
&& try_auto_increment (overlap, insn, 0, src, insn_const, 0))
insn = overlap;
else
- #endif
{
rtx notes = REG_NOTES (insn);
--- 1890,1900 ----
rtx pat = PATTERN (insn);
if (src_note)
remove_note (overlap, src_note);
! if ((HAVE_POST_INCREMENT || HAVE_POST_DECREMENT)
! && code == PLUS
&& try_auto_increment (overlap, insn, 0, src, insn_const, 0))
insn = overlap;
else
{
rtx notes = REG_NOTES (insn);