From c03c4711734044f4c18b8697918cacc74d9728f0 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 26 May 1994 18:58:47 -0400 Subject: [PATCH] (jump_optimize): When looking for an `if' statement that takes two insns to compute a result using a temporary... (jump_optimize): When looking for an `if' statement that takes two insns to compute a result using a temporary, allow the temporary to be a SUBREG. From-SVN: r7355 --- gcc/jump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/jump.c b/gcc/jump.c index c2a18371b9b..834bbce0f76 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -946,7 +946,11 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) && simplejump_p (temp2) && JUMP_LABEL (temp2) == JUMP_LABEL (insn))) && (temp1 = single_set (temp)) != 0 - && (temp5 = SET_DEST (temp1), GET_CODE (temp5) == REG) + && (temp5 = SET_DEST (temp1), + (GET_CODE (temp5) == REG + || (GET_CODE (temp5) == SUBREG + && (temp5 = SUBREG_REG (temp5), + GET_CODE (temp5) == REG)))) && REGNO (temp5) >= FIRST_PSEUDO_REGISTER && regno_first_uid[REGNO (temp5)] == INSN_UID (temp) && regno_last_uid[REGNO (temp5)] == INSN_UID (temp3) -- 2.30.2