This is an archive of the discontinued LLVM Phabricator instance.

LoopRotate: restructure code to simplify functions
ClosedPublic

Authored by sebpop on Jun 13 2016, 3:16 PM.

Details

Summary

We move the loop rotate functions in a separate class to avoid passing multiple parameters to each function.
This cleanup will help for further development of loop rotation.
NFC.

Patch written by Aditya Kumar and Sebastian Pop.

Diff Detail

Repository
rL LLVM

Event Timeline

sebpop updated this revision to Diff 60618.Jun 13 2016, 3:16 PM
sebpop retitled this revision from to LoopRotate: restructure code to simplify functions.
sebpop updated this object.
sebpop added reviewers: mzolotukhin, sanjoy.
sebpop added subscribers: llvm-commits, hiraditya.
sanjoy accepted this revision.Jun 13 2016, 3:29 PM
sanjoy edited edge metadata.

lgtm with nits

llvm/lib/Transforms/Scalar/LoopRotation.cpp
54 ↗(On Diff #60618)

How about const unsigned MaxHeaderSize?

68 ↗(On Diff #60618)

Looks like only the constructor and processLoop need to be public?

This revision is now accepted and ready to land.Jun 13 2016, 3:29 PM
This revision was automatically updated to reflect the committed changes.