(jump_optimize): Don't delete dead insn if it has a REG_RETVAL note.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 14 Jun 1994 21:32:30 +0000 (17:32 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 14 Jun 1994 21:32:30 +0000 (17:32 -0400)
From-SVN: r7458

gcc/jump.c

index 05938d2..08130db 100644 (file)
@@ -550,7 +550,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
               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)))
+           && ! side_effects_p (SET_SRC (set))
+           && ! find_reg_note (insn, REG_RETVAL, 0))
          delete_insn (insn);
       }