From e837554452518ca73af4ec64b0468991fdff4f7d Mon Sep 17 00:00:00 2001 From: Michael Eager Date: Fri, 10 Mar 2017 00:48:51 +0000 Subject: [PATCH] Eliminate unneeded test. From-SVN: r246020 --- gcc/config/microblaze/microblaze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); -- 2.30.2