This is an archive of the discontinued LLVM Phabricator instance.

[PM] Port LoopSimplify to the new PM
ClosedPublic

Authored by davide on Jun 15 2016, 1:31 PM.

Details

Summary

This was pretty mechanical, except for how we handle LCSSAPreserve.
Comments welcome.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 60896.Jun 15 2016, 1:31 PM
davide retitled this revision from to [PM] Port LoopSimplify to the new PM.
davide updated this object.
davide added reviewers: chandlerc, bogner, davidxl, sanjoy.
davide added a subscriber: llvm-commits.
chandlerc edited edge metadata.Jun 15 2016, 3:25 PM

I'd consolidate the APIs for loop simplify into the new header rather than have them split across multiple headers with this.

include/llvm/Transforms/Utils/LoopSimplify.h
50 ↗(On Diff #60896)

missing blank line after this...

(I hate this clang-format bug...)

lib/Transforms/Utils/LoopSimplify.cpp
822–823 ↗(On Diff #60896)

Er, this seems odd. Missing ! and return?

826–828 ↗(On Diff #60896)

I don't think this comment will really age effectively. We're very likely to delete the old code and not update this in any awy.

davide added a comment.Jul 7 2016, 2:37 PM

I'd consolidate the APIs for loop simplify into the new header rather than have them split across multiple headers with this.

Sorry, I completely missed this comment. Which multiple headers are you referring to?

This revision was automatically updated to reflect the committed changes.