[llvm] r188269 - Fix compiler warnings.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Aug 13 07:04:20 PDT 2013


Author: eugenis
Date: Tue Aug 13 09:04:20 2013
New Revision: 188269

URL: http://llvm.org/viewvc/llvm-project?rev=188269&view=rev
Log:
Fix compiler warnings.

../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();


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=188269&r1=188268&r2=188269&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Aug 13 09:04:20 2013
@@ -9712,10 +9712,9 @@ static SDValue LowerIntVSETCC_AVX512(SDV
   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, c
 #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.





More information about the llvm-commits mailing list