Eliminate unneeded test.
authorMichael Eager <eager@gcc.gnu.org>
Fri, 10 Mar 2017 00:48:51 +0000 (00:48 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Fri, 10 Mar 2017 00:48:51 +0000 (00:48 +0000)
From-SVN: r246020

gcc/config/microblaze/microblaze.c

index fb115e6..d0f86fd 100644 (file)
@@ -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]));