@@ -1982,9 +1982,6 @@ bool DAGTypeLegalizer::PromoteIntegerOperand(SDNode *N, unsigned OpNo) {
19821982 break ;
19831983 case ISD::MSTORE: Res = PromoteIntOp_MSTORE (cast<MaskedStoreSDNode>(N),
19841984 OpNo); break ;
1985- case ISD::VP_LOAD:
1986- Res = PromoteIntOp_VP_LOAD (cast<VPLoadSDNode>(N), OpNo);
1987- break ;
19881985 case ISD::MLOAD: Res = PromoteIntOp_MLOAD (cast<MaskedLoadSDNode>(N),
19891986 OpNo); break ;
19901987 case ISD::MGATHER: Res = PromoteIntOp_MGATHER (cast<MaskedGatherSDNode>(N),
@@ -2430,24 +2427,6 @@ SDValue DAGTypeLegalizer::PromoteIntOp_VP_STORE(VPStoreSDNode *N,
24302427 N->isCompressingStore ());
24312428}
24322429
2433- SDValue DAGTypeLegalizer::PromoteIntOp_VP_LOAD (VPLoadSDNode *N, unsigned OpNo) {
2434- assert (OpNo >= 3 && " Only know how to promote the mask or length!" );
2435- EVT DataVT = N->getValueType (0 );
2436- SDValue Operand = N->getOperand (OpNo);
2437- SDValue PromotedOperand = OpNo == 3 ? PromoteTargetBoolean (Operand, DataVT)
2438- : ZExtPromotedInteger (Operand);
2439- SmallVector<SDValue, 5 > NewOps (N->op_begin (), N->op_end ());
2440- NewOps[OpNo] = PromotedOperand;
2441- SDNode *Res = DAG.UpdateNodeOperands (N, NewOps);
2442- if (Res == N)
2443- return SDValue (Res, 0 );
2444-
2445- // Update triggered CSE, do our own replacement since caller can't.
2446- ReplaceValueWith (SDValue (N, 0 ), SDValue (Res, 0 ));
2447- ReplaceValueWith (SDValue (N, 1 ), SDValue (Res, 1 ));
2448- return SDValue ();
2449- }
2450-
24512430SDValue DAGTypeLegalizer::PromoteIntOp_MSTORE (MaskedStoreSDNode *N,
24522431 unsigned OpNo) {
24532432 SDValue DataOp = N->getValue ();
0 commit comments