From: Richard Kenner Date: Fri, 20 Oct 1995 23:14:10 +0000 (-0400) Subject: (distribute_notes): Delete instructions without side effect that set a X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d02089a5f24db5cea75174304a367b8b5555ddb8;p=gcc.git (distribute_notes): Delete instructions without side effect that set a subreg of an unused register. From-SVN: r10491 --- diff --git a/gcc/combine.c b/gcc/combine.c index cd7dc12eb3e..3cdfb32dd3e 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -10745,7 +10745,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) modified the register. */ if (set != 0 && ! side_effects_p (SET_SRC (set)) - && rtx_equal_p (XEXP (note, 0), SET_DEST (set))) + && (rtx_equal_p (XEXP (note, 0), SET_DEST (set)) + || (GET_CODE (SET_DEST (set)) == SUBREG + && rtx_equal_p (XEXP (note, 0), + XEXP (SET_DEST (set), 0))))) { /* Move the notes and links of TEM elsewhere. This might delete other dead insns recursively.