[llvm] 114f044 - [X86] Use EVT::getIntegerVT instead of MVT::getIntegerVT where the type can be i2 or i4.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 21:52:21 PST 2020
Author: Craig Topper
Date: 2020-11-12T21:48:45-08:00
New Revision: 114f0446405a0828037dbc3b5f506f92dd25ab7f
URL: https://github.com/llvm/llvm-project/commit/114f0446405a0828037dbc3b5f506f92dd25ab7f
DIFF: https://github.com/llvm/llvm-project/commit/114f0446405a0828037dbc3b5f506f92dd25ab7f.diff
LOG: [X86] Use EVT::getIntegerVT instead of MVT::getIntegerVT where the type can be i2 or i4.
This was a mistake introduced in D91294. I'm not sure how to
exercise this with the existing code, but I hit it while trying
some follow up experiments.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index f1956d77d615..df7d227d31db 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23884,8 +23884,8 @@ static SDValue LowerStore(SDValue Op, const X86Subtarget &Subtarget,
StoredVal = DAG.getNode(ISD::TRUNCATE, dl, MVT::i8, StoredVal);
// Make sure we store zeros in the extra bits.
if (NumElts < 8)
- StoredVal = DAG.getZeroExtendInReg(StoredVal, dl,
- MVT::getIntegerVT(NumElts));
+ StoredVal = DAG.getZeroExtendInReg(
+ StoredVal, dl, EVT::getIntegerVT(*DAG.getContext(), NumElts));
return DAG.getStore(St->getChain(), dl, StoredVal, St->getBasePtr(),
St->getPointerInfo(), St->getOriginalAlign(),
More information about the llvm-commits
mailing list