This is an archive of the discontinued LLVM Phabricator instance.

[PlaceSafepoints] Make internal helper pass a FunctionPass
ClosedPublic

Authored by reames on May 7 2015, 4:48 PM.

Details

Summary

Switch from using a LoopPass to using a FunctionPass for the internal helper analysis pass. The next step is going to be to make this a true analysis pass which is required by the PlaceSafepoints pass itself.

p.s. The interesting semantic part here is that we're changing the iteration order over the loops. It shouldn't matter, but that's the reason to separate this into it's own distinct patch.

Diff Detail

Repository
rL LLVM

Event Timeline

reames updated this revision to Diff 25262.May 7 2015, 4:48 PM
reames retitled this revision from to [PlaceSafepoints] Make internal helper pass a FunctionPass.
reames updated this object.
reames edited the test plan for this revision. (Show Details)
reames added a reviewer: sanjoy.
reames added a subscriber: Unknown Object (MLST).
reames updated this object.May 7 2015, 4:54 PM
sanjoy accepted this revision.May 8 2015, 1:19 AM
sanjoy edited edge metadata.
sanjoy added inline comments.
lib/Transforms/Scalar/PlaceSafepoints.cpp
113 ↗(On Diff #25262)

In a separate change, please also fix the comment to be a C++ style comment.

135 ↗(On Diff #25262)

I have a minor preference for calling this something more specific than runOnLoop.

This revision is now accepted and ready to land.May 8 2015, 1:19 AM
This revision was automatically updated to reflect the committed changes.