From a394b17b086af9eced8e17c8d459ccf07e22cb6c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 4 May 1993 16:54:16 -0700 Subject: (distribute_notes, REG_DEAD case): Handle hard registers which partially overlap the destination of the insn. From-SVN: r4327 --- gcc/combine.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc') diff --git a/gcc/combine.c b/gcc/combine.c index 6293bbc..9e14ea6 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -9773,6 +9773,16 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) all_used = 0; } + /* Check for the case where the register dying partially + overlaps the register set by this insn. */ + if (all_used) + for (i = regno; i < endregno; i++) + if (dead_or_set_regno_p (place, i)) + { + all_used = 0; + break; + } + if (! all_used) { /* Put only REG_DEAD notes for pieces that are -- cgit v1.1