mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Fix -Wunused-variable warning in non-asserts build, and optimize a little bit while I'm here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229970 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c5f9584ba
commit
7be2b85e1e
@ -8243,14 +8243,14 @@ static SDValue lowerV8I16VectorShuffle(SDValue Op, SDValue V1, SDValue V2,
|
||||
auto isV1 = [](int M) { return M >= 0 && M < 8; };
|
||||
auto isV2 = [](int M) { return M >= 8; };
|
||||
|
||||
int NumV1Inputs = std::count_if(Mask.begin(), Mask.end(), isV1);
|
||||
int NumV2Inputs = std::count_if(Mask.begin(), Mask.end(), isV2);
|
||||
|
||||
if (NumV2Inputs == 0)
|
||||
return lowerV8I16SingleInputVectorShuffle(DL, V1, Mask, Subtarget, DAG);
|
||||
|
||||
assert(NumV1Inputs > 0 && "All single-input shuffles should be canonicalized "
|
||||
"to be V1-input shuffles.");
|
||||
assert(std::any_of(Mask.begin(), Mask.end(), isV1) &&
|
||||
"All single-input shuffles should be canonicalized to be V1-input "
|
||||
"shuffles.");
|
||||
|
||||
// Try to use shift instructions.
|
||||
if (SDValue Shift =
|
||||
|
Loading…
x
Reference in New Issue
Block a user