From 88897b7c050cbaf3c8b43f366d9aa574068fcf44 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 27 Jun 2014 12:04:18 +0000 Subject: [x86] Clean up some unused variables, especially in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211894 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86ISelLowering.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 5f19d1b169..89e9623a54 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7167,9 +7167,6 @@ static SDValue lowerV8I16SingleInputVectorShuffle( MutableArrayRef LoMask = Mask.slice(0, 4); MutableArrayRef HiMask = Mask.slice(4, 4); - auto isLo = [](int M) { return M >= 0 && M < 4; }; - auto isHi = [](int M) { return M >= 4; }; - SmallVector LoInputs; std::copy_if(LoMask.begin(), LoMask.end(), std::back_inserter(LoInputs), [](int M) { return M >= 0; }); @@ -7411,9 +7408,11 @@ static SDValue lowerV8I16SingleInputVectorShuffle( // At this point, each half should contain all its inputs, and we can then // just shuffle them into their final position. - assert(std::count_if(LoMask.begin(), LoMask.end(), isHi) == 0 && + assert(std::count_if(LoMask.begin(), LoMask.end(), + [](int M) { return M >= 4; }) == 0 && "Failed to lift all the high half inputs to the low mask!"); - assert(std::count_if(HiMask.begin(), HiMask.end(), isLo) == 0 && + assert(std::count_if(HiMask.begin(), HiMask.end(), + [](int M) { return M >= 0 && M < 4; }) == 0 && "Failed to lift all the low half inputs to the high mask!"); // Do a half shuffle for the low mask. @@ -7498,7 +7497,8 @@ static SDValue lowerV8I16BasicBlendVectorShuffle(SDLoc DL, SDValue V1, int NumV1Inputs = LoV1Inputs.size() + HiV1Inputs.size(); int NumV2Inputs = LoV2Inputs.size() + HiV2Inputs.size(); - + (void)NumV1Inputs; + (void)NumV2Inputs; assert(NumV1Inputs > 0 && NumV1Inputs <= 3 && "At most 3 inputs supported"); assert(NumV2Inputs > 0 && NumV2Inputs <= 3 && "At most 3 inputs supported"); assert(NumV1Inputs + NumV2Inputs <= 4 && "At most 4 combined inputs"); @@ -7609,9 +7609,6 @@ static SDValue lowerV8I16VectorShuffle(SDValue Op, SDValue V1, SDValue V2, assert(Mask.size() == 8 && "Unexpected mask size for v8 shuffle!"); - int Size = Mask.size(); - assert(Size == 8 && "Unexpected mask size for v8 shuffle!"); - auto isV1 = [](int M) { return M >= 0 && M < 8; }; auto isV2 = [](int M) { return M >= 8; }; -- cgit v1.2.3