This is an archive of the discontinued LLVM Phabricator instance.

[ModuloSchedule] Do target loop analysis before peeling.
ClosedPublic

Authored by ThomasRaoux on Nov 6 2019, 10:33 AM.

Details

Reviewers
jmolloy
Summary

Simple change to call target hook analyzeLoopForPipelining before
changing the loop. After peeling analyzing the loop may be more
complicated for target that don't have a loop instruction. This doesn't
affect Hexagone and PPC as they have hardware loop instructions.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Nov 6 2019, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 6 2019, 10:33 AM
jmolloy accepted this revision.Nov 6 2019, 11:15 AM

LGTM, thanks!

llvm/include/llvm/CodeGen/ModuloSchedule.h
346

No need for =nullptr, the default constructor does this.

This revision is now accepted and ready to land.Nov 6 2019, 11:15 AM