[SelectionDAG] Simplify creation of getStoreVP in WidenVecOp_STORE. NFC

We can use the offset from the original store instead of creating
a new undef offset.

We didn't check if the offset was undef already so we really shouldn't
drop it if it isn't.
This commit is contained in:
Craig Topper 2025-05-21 17:13:30 -07:00
parent 1b34722302
commit 0a42db682a

View File

@ -7216,8 +7216,7 @@ SDValue DAGTypeLegalizer::WidenVecOp_STORE(SDNode *N) {
SDValue EVL = DAG.getElementCount(DL, TLI.getVPExplicitVectorLengthTy(),
StVT.getVectorElementCount());
return DAG.getStoreVP(ST->getChain(), DL, StVal, ST->getBasePtr(),
DAG.getUNDEF(ST->getBasePtr().getValueType()), Mask,
EVL, StVT, ST->getMemOperand(),
ST->getOffset(), Mask, EVL, StVT, ST->getMemOperand(),
ST->getAddressingMode());
}