[llvm] r326672 - [X86] Fix unused variable in release builds.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 3 18:14:16 PST 2018
Author: ctopper
Date: Sat Mar 3 18:14:16 2018
New Revision: 326672
URL: http://llvm.org/viewvc/llvm-project?rev=326672&view=rev
Log:
[X86] Fix unused variable in release builds.
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=326672&r1=326671&r2=326672&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Mar 3 18:14:16 2018
@@ -18999,13 +18999,14 @@ static SDValue LowerSIGN_EXTEND(SDValue
static SDValue LowerStore(SDValue Op, const X86Subtarget &Subtarget,
SelectionDAG &DAG) {
StoreSDNode *St = cast<StoreSDNode>(Op.getNode());
- EVT VT = St->getValue().getValueType();
SDLoc dl(St);
- SDValue StoredVal = St->getOperand(1);
+ SDValue StoredVal = St->getValue();
// Without AVX512DQ, we need to use a scalar type for v2i1/v4i1/v8i1 loads.
- assert(VT.isVector() && VT.getVectorElementType() == MVT::i1 &&
- VT.getVectorNumElements() <= 8 && "Unexpected VT");
+ assert(StoredVal.getValueType().isVector() &&
+ StoredVal.getValueType().getVectorElementType() == MVT::i1 &&
+ StoredVal.getValueType().getVectorNumElements() <= 8 &&
+ "Unexpected VT");
assert(!St->isTruncatingStore() && "Expected non-truncating store");
assert(Subtarget.hasAVX512() && !Subtarget.hasDQI() &&
"Expected AVX512F without AVX512DQI");
More information about the llvm-commits
mailing list