@@ -7904,7 +7904,7 @@ void EpilogueVectorizerEpilogueLoop::printDebugTracesAtEnd() {
7904
7904
iterator_range<mapped_iterator<Use *, std::function<VPValue *(Value *)>>>
7905
7905
VPRecipeBuilder::mapToVPValues (User::op_range Operands) {
7906
7906
std::function<VPValue *(Value *)> Fn = [this ](Value *Op) {
7907
- return getVPValueOrAddLiveIn (Op, Plan );
7907
+ return getVPValueOrAddLiveIn (Op);
7908
7908
};
7909
7909
return map_range (Operands, Fn);
7910
7910
}
@@ -7920,7 +7920,7 @@ void VPRecipeBuilder::createSwitchEdgeMasks(SwitchInst *SI) {
7920
7920
// Create masks where the terminator in Src is a switch. We create mask for
7921
7921
// all edges at the same time. This is more efficient, as we can create and
7922
7922
// collect compares for all cases once.
7923
- VPValue *Cond = getVPValueOrAddLiveIn (SI->getCondition (), Plan );
7923
+ VPValue *Cond = getVPValueOrAddLiveIn (SI->getCondition ());
7924
7924
BasicBlock *DefaultDst = SI->getDefaultDest ();
7925
7925
MapVector<BasicBlock *, SmallVector<VPValue *>> Dst2Compares;
7926
7926
for (auto &C : SI->cases ()) {
@@ -7931,7 +7931,7 @@ void VPRecipeBuilder::createSwitchEdgeMasks(SwitchInst *SI) {
7931
7931
if (Dst == DefaultDst)
7932
7932
continue ;
7933
7933
auto I = Dst2Compares.insert ({Dst, {}});
7934
- VPValue *V = getVPValueOrAddLiveIn (C.getCaseValue (), Plan );
7934
+ VPValue *V = getVPValueOrAddLiveIn (C.getCaseValue ());
7935
7935
I.first ->second .push_back (Builder.createICmp (CmpInst::ICMP_EQ, Cond, V));
7936
7936
}
7937
7937
@@ -7994,7 +7994,7 @@ VPValue *VPRecipeBuilder::createEdgeMask(BasicBlock *Src, BasicBlock *Dst) {
7994
7994
if (OrigLoop->isLoopExiting (Src))
7995
7995
return EdgeMaskCache[Edge] = SrcMask;
7996
7996
7997
- VPValue *EdgeMask = getVPValueOrAddLiveIn (BI->getCondition (), Plan );
7997
+ VPValue *EdgeMask = getVPValueOrAddLiveIn (BI->getCondition ());
7998
7998
assert (EdgeMask && " No Edge Mask found for condition" );
7999
7999
8000
8000
if (BI->getSuccessor (0 ) != Dst)
@@ -8605,7 +8605,7 @@ static MapVector<PHINode *, VPValue *> collectUsersInExitBlock(
8605
8605
for (PHINode &ExitPhi : ExitBB->phis ()) {
8606
8606
Value *IncomingValue =
8607
8607
ExitPhi.getIncomingValueForBlock (ExitingBB);
8608
- VPValue *V = Builder.getVPValueOrAddLiveIn (IncomingValue, Plan );
8608
+ VPValue *V = Builder.getVPValueOrAddLiveIn (IncomingValue);
8609
8609
// Exit values for inductions are computed and updated outside of VPlan and
8610
8610
// independent of induction recipes.
8611
8611
// TODO: Compute induction exit values in VPlan, use VPLiveOuts to update
0 commit comments