1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00

Fixed unused variable warning.

llvm-svn: 228054
This commit is contained in:
Simon Pilgrim 2015-02-03 22:39:28 +00:00
parent 737967641b
commit 62df1f3764

View File

@ -7818,7 +7818,6 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1,
SDValue V2, ArrayRef<int> Mask,
SelectionDAG &DAG) {
SmallBitVector Zeroable = computeZeroableShuffleElements(Mask, V1, V2);
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
int Size = Mask.size();
assert(Size == VT.getVectorNumElements() && "Unexpected mask size");
@ -7832,7 +7831,8 @@ static SDValue lowerVectorShuffleAsBitShift(SDLoc DL, MVT VT, SDValue V1,
auto MatchBitShift = [&](int Shift, int Scale) -> SDValue {
MVT ShiftSVT = MVT::getIntegerVT(VT.getScalarSizeInBits() * Scale);
MVT ShiftVT = MVT::getVectorVT(ShiftSVT, Size / Scale);
assert(TLI.isTypeLegal(ShiftVT) && "Illegal integer vector type");
assert(DAG.getTargetLoweringInfo().isTypeLegal(ShiftVT) &&
"Illegal integer vector type");
bool MatchLeft = true, MatchRight = true;
for (int i = 0; i != Size; i += Scale) {