[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.
This commit is contained in:
Florian Hahn 2021-11-24 20:17:43 +00:00
parent bfadc5dcbf
commit 2897b67665
No known key found for this signature in database
GPG Key ID: EEF712BB5E80EBBA
1 changed files with 3 additions and 2 deletions

View File

@ -8595,7 +8595,8 @@ void EpilogueVectorizerMainLoop::printDebugTracesAtStart() {
void EpilogueVectorizerMainLoop::printDebugTracesAtEnd() {
DEBUG_WITH_TYPE(VerboseDebug, {
dbgs() << "intermediate fn:\n" << *Induction->getFunction() << "\n";
dbgs() << "intermediate fn:\n"
<< *OrigLoop->getHeader()->getParent() << "\n";
});
}
@ -8793,7 +8794,7 @@ void EpilogueVectorizerEpilogueLoop::printDebugTracesAtStart() {
void EpilogueVectorizerEpilogueLoop::printDebugTracesAtEnd() {
DEBUG_WITH_TYPE(VerboseDebug, {
dbgs() << "final fn:\n" << *Induction->getFunction() << "\n";
dbgs() << "final fn:\n" << *OrigLoop->getHeader()->getParent() << "\n";
});
}