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 fb115e69e766d4cd0267a0820bcd444eebc4488b..d0f86fd46071bfb58786a90453ec838d4aca740c 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]));