Skip to content

Commit 114f044

Browse files
committed
[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.
1 parent a4124e4 commit 114f044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23884,8 +23884,8 @@ static SDValue LowerStore(SDValue Op, const X86Subtarget &Subtarget,
2388423884
StoredVal = DAG.getNode(ISD::TRUNCATE, dl, MVT::i8, StoredVal);
2388523885
// Make sure we store zeros in the extra bits.
2388623886
if (NumElts < 8)
23887-
StoredVal = DAG.getZeroExtendInReg(StoredVal, dl,
23888-
MVT::getIntegerVT(NumElts));
23887+
StoredVal = DAG.getZeroExtendInReg(
23888+
StoredVal, dl, EVT::getIntegerVT(*DAG.getContext(), NumElts));
2388923889

2389023890
return DAG.getStore(St->getChain(), dl, StoredVal, St->getBasePtr(),
2389123891
St->getPointerInfo(), St->getOriginalAlign(),

0 commit comments

Comments
 (0)