@@ -16353,7 +16353,7 @@ static SDValue performVP_REVERSECombine(SDNode *N, SelectionDAG &DAG,
1635316353 SDValue Temp2 = DAG.getNode(ISD::MUL, DL, XLenVT, Temp1,
1635416354 DAG.getConstant(ElemWidthByte, DL, XLenVT));
1635516355 SDValue Base = DAG.getNode(ISD::ADD, DL, XLenVT, VPLoad->getBasePtr(), Temp2);
16356- SDValue Stride = DAG.getConstant (-ElemWidthByte, DL, XLenVT);
16356+ SDValue Stride = DAG.getSignedConstant (-ElemWidthByte, DL, XLenVT);
1635716357
1635816358 MachineFunction &MF = DAG.getMachineFunction();
1635916359 MachinePointerInfo PtrInfo(VPLoad->getAddressSpace());
@@ -16414,7 +16414,7 @@ static SDValue performVP_STORECombine(SDNode *N, SelectionDAG &DAG,
1641416414 DAG.getConstant(ElemWidthByte, DL, XLenVT));
1641516415 SDValue Base =
1641616416 DAG.getNode(ISD::ADD, DL, XLenVT, VPStore->getBasePtr(), Temp2);
16417- SDValue Stride = DAG.getConstant (-ElemWidthByte, DL, XLenVT);
16417+ SDValue Stride = DAG.getSignedConstant (-ElemWidthByte, DL, XLenVT);
1641816418
1641916419 MachineFunction &MF = DAG.getMachineFunction();
1642016420 MachinePointerInfo PtrInfo(VPStore->getAddressSpace());
0 commit comments