[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:
parent
1b34722302
commit
0a42db682a
@ -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());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user