Skip to content

Commit 9a10d48

Browse files
committed
Rebase && change some name of variable
1 parent df55299 commit 9a10d48

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,23 +1479,23 @@ 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)
1482+
.Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>([&](auto *CR)
14831483
-> VPRecipeBase * {
14841484
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());
14891489
assert(VPID != Intrinsic::not_intrinsic && "Expected VP intrinsic");
14901490
assert(VPIntrinsic::getMaskParamPos(VPID) &&
14911491
VPIntrinsic::getVectorLengthParamPos(VPID) &&
14921492
"Expected VP intrinsic");
14931493

1494-
SmallVector<VPValue *> Ops(CInst->operands());
1494+
SmallVector<VPValue *> Ops(CR->operands());
14951495
Ops.push_back(&AllOneMask);
14961496
Ops.push_back(&EVL);
14971497
return new VPWidenIntrinsicRecipe(
1498-
VPID, Ops, TypeInfo.inferScalarType(CInst), CInst->getDebugLoc());
1498+
VPID, Ops, TypeInfo.inferScalarType(CR), CR->getDebugLoc());
14991499
})
15001500
.Case<VPWidenSelectRecipe>([&](VPWidenSelectRecipe *Sel) {
15011501
SmallVector<VPValue *> Ops(Sel->operands());

0 commit comments

Comments
 (0)