This reorganizes the code as a preparation for D123865:
- Use more descriptive names for variables
- Simplify a condition by use an already calculated value for MaxPeelCount
- Remove a duplicate log entry
- Report basic values for loop costs
Paths
| Differential D124388
[LoopPeel][NFCI] Simplify the code to calculate peel count for PGO ClosedPublic Authored by ikudrin on Apr 25 2022, 7:13 AM.
Details Summary This reorganizes the code as a preparation for D123865:
Diff Detail
Event Timelineikudrin added a parent revision: D123864: [LoopPeel][NFC] Exit early if there is no room for peeling. ikudrin added a child revision: D123865: [LoopPeel] Allow partial unrolling for profile-based peeling. Comment Actions This patch slightly changes the behavior (e.g consider alreadyPeeled when comparing with size threshold), but looks more correct. LGTM. This revision is now accepted and ready to land.Apr 25 2022, 8:05 PM This revision was landed with ongoing or failed builds.Apr 26 2022, 7:45 AM Closed by commit rG39ce68886b49: [LoopPeel][NFCI] Simplify the code to calculate peel count for PGO (authored by ikudrin). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 425216 llvm/lib/Transforms/Utils/LoopPeel.cpp
|