]> gcc.gnu.org Git - gcc.git/commitdiff
(jump_optimize): Use regno_last_note_uid when deciding
authorRichard Stallman <rms@gnu.org>
Mon, 11 Oct 1993 07:02:09 +0000 (07:02 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 11 Oct 1993 07:02:09 +0000 (07:02 +0000)
From-SVN: r5727

gcc/jump.c

index 7b8094ccdf4467463c60651a1130b16d337186c4..f26170f67c1f44e5050aacac46e0a2e7941dedd0 100644 (file)
@@ -540,7 +540,10 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
        if (set && GET_CODE (SET_DEST (set)) == REG
            && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER
            && regno_first_uid[REGNO (SET_DEST (set))] == INSN_UID (insn)
-           && regno_last_uid[REGNO (SET_DEST (set))] == INSN_UID (insn)
+           /* We use regno_last_note_uid so as not to delete the setting
+              of a reg that's used in notes.  A subsequent optimization
+              might arrange to use that reg for real.  */             
+           && regno_last_note_uid[REGNO (SET_DEST (set))] == INSN_UID (insn)
            && ! side_effects_p (SET_SRC (set)))
          delete_insn (insn);
       }
This page took 0.074589 seconds and 5 git commands to generate.