This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Another regmove cleanup patch



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);
  



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]