Skip to content

Commit 2897b67

Browse files
committed
[LV] Use OrigLoop instead of induction to get function. (NFC)
Upcoming changes will result in Induction not being set/used in some cases. Use OrigLoop to get the function instead.
1 parent bfadc5d commit 2897b67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8595,7 +8595,8 @@ void EpilogueVectorizerMainLoop::printDebugTracesAtStart() {
85958595

85968596
void EpilogueVectorizerMainLoop::printDebugTracesAtEnd() {
85978597
DEBUG_WITH_TYPE(VerboseDebug, {
8598-
dbgs() << "intermediate fn:\n" << *Induction->getFunction() << "\n";
8598+
dbgs() << "intermediate fn:\n"
8599+
<< *OrigLoop->getHeader()->getParent() << "\n";
85998600
});
86008601
}
86018602

@@ -8793,7 +8794,7 @@ void EpilogueVectorizerEpilogueLoop::printDebugTracesAtStart() {
87938794

87948795
void EpilogueVectorizerEpilogueLoop::printDebugTracesAtEnd() {
87958796
DEBUG_WITH_TYPE(VerboseDebug, {
8796-
dbgs() << "final fn:\n" << *Induction->getFunction() << "\n";
8797+
dbgs() << "final fn:\n" << *OrigLoop->getHeader()->getParent() << "\n";
87978798
});
87988799
}
87998800

0 commit comments

Comments
 (0)