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