[llvm] r320934 - Fix unused variable warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 16 15:37:52 PST 2017
Author: rksimon
Date: Sat Dec 16 15:37:51 2017
New Revision: 320934
URL: http://llvm.org/viewvc/llvm-project?rev=320934&view=rev
Log:
Fix unused variable warning.
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=320934&r1=320933&r2=320934&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Dec 16 15:37:51 2017
@@ -10469,10 +10469,9 @@ static SDValue lowerVectorShuffleAsBroad
// The shuffle input might have been a bitcast we looked through; look at
// the original input vector. Emit an EXTRACT_SUBVECTOR of that type; we'll
// later bitcast it to BroadcastVT.
- MVT SrcVT = V.getSimpleValueType();
- assert(SrcVT.getScalarSizeInBits() == BroadcastVT.getScalarSizeInBits() &&
+ assert(V.getScalarValueSizeInBits() == BroadcastVT.getScalarSizeInBits() &&
"Unexpected vector element size");
- assert((SrcVT.is256BitVector() || SrcVT.is512BitVector()) &&
+ assert((V.getValueSizeInBits() == 256 || V.getValueSizeInBits() == 512) &&
"Unexpected vector size");
V = extract128BitVector(V, BroadcastIdx, DAG, DL);
}
More information about the llvm-commits
mailing list