From: Michael Eager Date: Fri, 10 Mar 2017 00:48:51 +0000 (+0000) Subject: Eliminate unneeded test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e837554452518ca73af4ec64b0468991fdff4f7d;p=gcc.git Eliminate unneeded test. From-SVN: r246020 --- diff --git a/gcc/config/microblaze/microblaze.c b/gcc/config/microblaze/microblaze.c index fb115e69e76..d0f86fd4607 100644 --- a/gcc/config/microblaze/microblaze.c +++ b/gcc/config/microblaze/microblaze.c @@ -3323,7 +3323,7 @@ microblaze_expand_shift (rtx operands[]) || (GET_CODE (operands[1]) == SUBREG)); /* Shift by zero -- copy regs if necessary. */ - if (CONST_INT_P (operands[2]) && (operands[2] == const0_rtx) + if (operands[2] == const0_rtx && !rtx_equal_p (operands[0], operands[1])) { emit_insn (gen_movsi (operands[0], operands[1]));