From d409668956f44a538314abbee36486e1d199392b Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 11 Dec 1996 17:46:34 -0500 Subject: [PATCH] (try_combine): When splitting an insn, check for the new I2 setting a SUBREG. From-SVN: r13286 --- gcc/combine.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/combine.c b/gcc/combine.c index 683765f407c..472767ae6df 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -1845,10 +1845,15 @@ try_combine (i3, i2, i1) || GET_CODE (new_i3_dest) == SUBREG) new_i3_dest = XEXP (new_i3_dest, 0); + while (GET_CODE (new_i2_dest) == ZERO_EXTRACT + || GET_CODE (new_i2_dest) == STRICT_LOW_PART + || GET_CODE (new_i2_dest) == SUBREG) + new_i2_dest = XEXP (new_i2_dest, 0); + if (GET_CODE (new_i3_dest) == REG && GET_CODE (new_i2_dest) == REG && REGNO (new_i3_dest) == REGNO (new_i2_dest)) - reg_n_sets[REGNO (SET_DEST (i2set))]++; + reg_n_sets[REGNO (new_i2_dest)]++; } }