[llvm] r227691 - Remove unused variable.
Diego Novillo
dnovillo at google.com
Sat Jan 31 09:17:34 PST 2015
Author: dnovillo
Date: Sat Jan 31 11:17:33 2015
New Revision: 227691
URL: http://llvm.org/viewvc/llvm-project?rev=227691&view=rev
Log:
Remove unused variable.
Summary:
This variable is only used inside an assert. This breaks builds with
asserts disabled.
OK for trunk?
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D7314
Modified:
llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
Modified: llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp?rev=227691&r1=227690&r2=227691&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp (original)
+++ llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp Sat Jan 31 11:17:33 2015
@@ -400,14 +400,14 @@ void DecodeVPERMILPMask(const Constant *
}
void DecodeZeroExtendMask(MVT SrcVT, MVT DstVT, SmallVectorImpl<int> &Mask) {
- unsigned NumSrcElts = SrcVT.getVectorNumElements();
unsigned NumDstElts = DstVT.getVectorNumElements();
unsigned SrcScalarBits = SrcVT.getScalarSizeInBits();
unsigned DstScalarBits = DstVT.getScalarSizeInBits();
unsigned Scale = DstScalarBits / SrcScalarBits;
assert(SrcScalarBits < DstScalarBits &&
"Expected zero extension mask to increase scalar size");
- assert(NumSrcElts >= NumDstElts && "Too many zero extension lanes");
+ assert(SrcVT.getVectorNumElements() >= NumDstElts &&
+ "Too many zero extension lanes");
for (unsigned i = 0; i != NumDstElts; i++) {
Mask.push_back(i);
More information about the llvm-commits
mailing list