Skip to content

Commit d66cbec

Browse files
committed
[VPlan] Use getVPValueOrAddLiveIn in mapToVPValues (NFC).
Use existing helper.
1 parent 33e7cd6 commit d66cbec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7904,11 +7904,7 @@ void EpilogueVectorizerEpilogueLoop::printDebugTracesAtEnd() {
79047904
iterator_range<mapped_iterator<Use *, std::function<VPValue *(Value *)>>>
79057905
VPRecipeBuilder::mapToVPValues(User::op_range Operands) {
79067906
std::function<VPValue *(Value *)> Fn = [this](Value *Op) {
7907-
if (auto *I = dyn_cast<Instruction>(Op)) {
7908-
if (auto *R = Ingredient2Recipe.lookup(I))
7909-
return R->getVPSingleValue();
7910-
}
7911-
return Plan.getOrAddLiveIn(Op);
7907+
return getVPValueOrAddLiveIn(Op, Plan);
79127908
};
79137909
return map_range(Operands, Fn);
79147910
}

0 commit comments

Comments
 (0)