Fix compiler warnings.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 13 Aug 2013 14:04:20 +0000 (14:04 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 13 Aug 2013 14:04:20 +0000 (14:04 +0000)
../lib/Target/X86/X86ISelLowering.cpp:9715:7: error: unused variable 'OpVT' [-Werror,-Wunused-variable]
  EVT OpVT = Op0.getValueType();
      ^
../lib/Target/X86/X86ISelLowering.cpp:9763:14: error: unused variable 'NumElems' [-Werror,-Wunused-variable]
    unsigned NumElems = VT.getVectorNumElements();

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188269 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index b6e7413fafd26299e7e2283cd1de95bfa50f3d5f..9625e4baaf8ba78bffbdd2566482766228d10739 100644 (file)
@@ -9712,10 +9712,9 @@ static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
   SDValue CC = Op.getOperand(2);
   MVT VT = Op.getValueType().getSimpleVT();
 
-  EVT OpVT = Op0.getValueType();
-  assert(OpVT.getVectorElementType().getSizeInBits() >= 32 &&
+  assert(Op0.getValueType().getVectorElementType().getSizeInBits() >= 32 &&
          Op.getValueType().getScalarType() == MVT::i1 &&
-        "Cannot set masked compare for this operation");
+         "Cannot set masked compare for this operation");
 
   ISD::CondCode SetCCOpcode = cast<CondCodeSDNode>(CC)->get();
   SDLoc dl(Op);
@@ -9759,10 +9758,9 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget *Subtarget,
 #endif
 
     unsigned SSECC = translateX86FSETCC(SetCCOpcode, Op0, Op1);
-    unsigned  Opc = X86ISD::CMPP;
-    unsigned NumElems = VT.getVectorNumElements();
+    unsigned Opc = X86ISD::CMPP;
     if (Subtarget->hasAVX512() && VT.getVectorElementType() == MVT::i1) {
-      assert(NumElems <=16);
+      assert(VT.getVectorNumElements() <= 16);
       Opc = X86ISD::CMPM;
     }
     // In the two special cases we can't handle, emit two comparisons.