[llvm] r260908 - [X86] Remove now-dead variable and redundant assert. NFC.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 11:32:54 PST 2016


Author: ab
Date: Mon Feb 15 13:32:54 2016
New Revision: 260908

URL: http://llvm.org/viewvc/llvm-project?rev=260908&view=rev
Log:
[X86] Remove now-dead variable and redundant assert. NFC.

The variable was made dead in NDEBUG by r260901, but the assert
was redundant anyway: get rid of both.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=260908&r1=260907&r2=260908&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Feb 15 13:32:54 2016
@@ -13326,10 +13326,8 @@ static SDValue lowerUINT_TO_FP_vXi32(SDV
   if (VecFloatVT != Op->getSimpleValueType(0))
     return SDValue();
 
-  unsigned NumElts = VecIntVT.getVectorNumElements();
   assert((VecIntVT == MVT::v4i32 || VecIntVT == MVT::v8i32) &&
          "Unsupported custom type");
-  assert(NumElts <= 8 && "The size of the constant array must be fixed");
 
   // In the #idef/#else code, we have in common:
   // - The vector of constants:




More information about the llvm-commits mailing list