From d02089a5f24db5cea75174304a367b8b5555ddb8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 20 Oct 1995 19:14:10 -0400 Subject: [PATCH] (distribute_notes): Delete instructions without side effect that set a subreg of an unused register. From-SVN: r10491 --- gcc/combine.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.30.2