]> gcc.gnu.org Git - gcc.git/commitdiff
(save_call_clobbered_regs): If AUTO_INC_DEC, mark register indicated
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Jun 1995 20:30:25 +0000 (16:30 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 19 Jun 1995 20:30:25 +0000 (16:30 -0400)
by REG_INC notes as live so they will be saved.

From-SVN: r10010

gcc/caller-save.c

index 81334f0849edb11e394e0da600a9338626d7f18d..6dc90189ee6e61563d9f19f1b058f34bd233c6d1 100644 (file)
@@ -473,7 +473,14 @@ save_call_clobbered_regs (insn_mode)
                      n_regs_saved++;
                }
              else
-               note_stores (PATTERN (insn), set_reg_live);
+               {
+                 note_stores (PATTERN (insn), set_reg_live);
+#ifdef AUTO_INC_DEC
+                 for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
+                   if (REG_NOTE_KIND (link) == REG_INC)
+                     set_reg_live (XEXP (link, 0), NULL_RTX);
+#endif
+               }
 
              for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
                if (REG_NOTE_KIND (link) == REG_UNUSED)
This page took 0.065072 seconds and 5 git commands to generate.