@@ -1479,24 +1479,25 @@ static VPRecipeBase *createEVLRecipe(VPValue *HeaderMask,
14791479 VPValue *NewMask = GetNewMask (Red->getCondOp ());
14801480 return new VPReductionEVLRecipe (*Red, EVL, NewMask);
14811481 })
1482- .Case <VPWidenIntrinsicRecipe, VPWidenCastRecipe>([&](auto *CInst)
1483- -> VPRecipeBase * {
1484- Intrinsic::ID VPID;
1485- if (auto *CallInst = dyn_cast<VPWidenIntrinsicRecipe>(CInst))
1486- VPID = VPIntrinsic::getForIntrinsic (CallInst->getVectorIntrinsicID ());
1487- else if (auto *CastInst = dyn_cast<VPWidenCastRecipe>(CInst))
1488- VPID = VPIntrinsic::getForOpcode (CastInst->getOpcode ());
1489- assert (VPID != Intrinsic::not_intrinsic && " Expected VP intrinsic" );
1490- assert (VPIntrinsic::getMaskParamPos (VPID) &&
1491- VPIntrinsic::getVectorLengthParamPos (VPID) &&
1492- " Expected VP intrinsic" );
1493-
1494- SmallVector<VPValue *> Ops (CInst->operands ());
1495- Ops.push_back (&AllOneMask);
1496- Ops.push_back (&EVL);
1497- return new VPWidenIntrinsicRecipe (
1498- VPID, Ops, TypeInfo.inferScalarType (CInst), CInst->getDebugLoc ());
1499- })
1482+ .Case <VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
1483+ [&](auto *CR) -> VPRecipeBase * {
1484+ Intrinsic::ID VPID;
1485+ if (auto *CallR = dyn_cast<VPWidenIntrinsicRecipe>(CR))
1486+ VPID =
1487+ VPIntrinsic::getForIntrinsic (CallR->getVectorIntrinsicID ());
1488+ else if (auto *CastR = dyn_cast<VPWidenCastRecipe>(CR))
1489+ VPID = VPIntrinsic::getForOpcode (CastR->getOpcode ());
1490+ assert (VPID != Intrinsic::not_intrinsic && " Expected VP intrinsic" );
1491+ assert (VPIntrinsic::getMaskParamPos (VPID) &&
1492+ VPIntrinsic::getVectorLengthParamPos (VPID) &&
1493+ " Expected VP intrinsic" );
1494+
1495+ SmallVector<VPValue *> Ops (CR->operands ());
1496+ Ops.push_back (&AllOneMask);
1497+ Ops.push_back (&EVL);
1498+ return new VPWidenIntrinsicRecipe (
1499+ VPID, Ops, TypeInfo.inferScalarType (CR), CR->getDebugLoc ());
1500+ })
15001501 .Case <VPWidenSelectRecipe>([&](VPWidenSelectRecipe *Sel) {
15011502 SmallVector<VPValue *> Ops (Sel->operands ());
15021503 Ops.push_back (&EVL);
0 commit comments