From: Michael Meissner Date: Mon, 15 Jun 1998 16:32:00 +0000 (+0000) Subject: Reorder tests in last change for speed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ac3da71e2fa29444d43da5240c4f1fac3dc00d3;p=gcc.git Reorder tests in last change for speed From-SVN: r20513 --- diff --git a/gcc/regmove.c b/gcc/regmove.c index f932da8417d..9dd58337895 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -560,11 +560,12 @@ copy_src_to_dest (insn, src, dest, loop_depth) parameter when there is no frame pointer that is not allocated a register. For now, we just reject them, rather than incrementing the live length. */ - if (GET_CODE (src) == REG && GET_CODE (dest) == REG + if (GET_CODE (src) == REG + && REG_LIVE_LENGTH (REGNO (src)) > 0 + && GET_CODE (dest) == REG + && REG_LIVE_LENGTH (REGNO (dest)) > 0 && (set = single_set (insn)) != NULL_RTX && !reg_mentioned_p (dest, SET_SRC (set)) - && REG_LIVE_LENGTH (REGNO (dest)) > 0 - && REG_LIVE_LENGTH (REGNO (src)) > 0 && validate_replace_rtx (src, dest, insn)) { /* Generate the src->dest move. */