Skip to content

Commit 0ff3e60

Browse files
committed
Rebase
1 parent 6311423 commit 0ff3e60

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9649,7 +9649,8 @@ VPlanPtr LoopVectorizationPlanner::buildVPlan(VFRange &Range) {
96499649

96509650
// Collect mapping of IR header phis to header phi recipes, to be used in
96519651
// addScalarResumePhis.
9652-
VPRecipeBuilder RecipeBuilder(*Plan, OrigLoop, TLI, Legal, CM, PSE, Builder);
9652+
VPRecipeBuilder RecipeBuilder(*Plan, OrigLoop, TLI, &TTI, Legal, CM, PSE,
9653+
Builder);
96539654
for (auto &R : Plan->getVectorLoopRegion()->getEntryBasicBlock()->phis()) {
96549655
if (isa<VPCanonicalIVPHIRecipe>(&R))
96559656
continue;

llvm/test/Transforms/LoopVectorize/AArch64/vplan-printing.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ define i32 @print_partial_reduction(ptr %a, ptr %b) {
4747
; CHECK-NEXT: Successor(s): ir-bb<exit>, scalar.ph
4848
; CHECK-EMPTY:
4949
; CHECK-NEXT: scalar.ph:
50+
; CHECK-NEXT: EMIT vp<%bc.resume.val> = resume-phi vp<[[VEC_TC]]>, ir<0>
5051
; CHECK-NEXT: EMIT vp<%bc.merge.rdx> = resume-phi vp<[[RED_RESULT]]>, ir<0>
5152
; CHECK-NEXT: Successor(s): ir-bb<for.body>
5253
; CHECK-EMPTY:

0 commit comments

Comments
 (0)