From: Richard Kenner Date: Thu, 26 May 1994 22:58:47 +0000 (-0400) Subject: (jump_optimize): When looking for an `if' statement that takes two insns to compute... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c03c4711734044f4c18b8697918cacc74d9728f0;p=gcc.git (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 --- 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)