regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p on notes.
authorJeffrey A Law <law@cygnus.com>
Tue, 18 Aug 1998 17:14:34 +0000 (17:14 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 18 Aug 1998 17:14:34 +0000 (11:14 -0600)
        * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
        on notes.

From-SVN: r21830

gcc/ChangeLog
gcc/regmove.c

index 82eccb9e93a61667e9e85f3a5e662d21a45b995f..c17374e726fbf4f5f75a4d3b0da941fc80024968 100644 (file)
@@ -5,6 +5,9 @@ Tue Aug 18 12:40:27 1998  Richard Henderson  <rth@cygnus.com>
 
 Tue Aug 18 10:33:30 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * regmove.c (fixup_match_2): Do not call reg_overlap_mentioned_p
+       on notes.
+
        * Makefile.in (cplus-dem.o): Provide explicit rules for building
        cplus-dem.o
 
index 878655322482f1fbceda497834122d66752fe263..ba78411bea8a75a41d731ba94a74ed3fcaed9d4c 100644 (file)
@@ -823,6 +823,8 @@ fixup_match_2 (insn, dst, src, offset, regmove_dump_file)
                          && (NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_BEG
                              || NOTE_LINE_NUMBER (p) == NOTE_INSN_LOOP_END)))
                    break;
+                 if (GET_RTX_CLASS (GET_CODE (p)) != 'i')
+                   continue;
                  if (reg_overlap_mentioned_p (dst, PATTERN (p)))
                    {
                      if (try_auto_increment (p, insn, 0, dst, newconst, 0))