This is an archive of the discontinued LLVM Phabricator instance.

[LoopUnroll] Split out simplify code after Unroll into a new function. NFC
ClosedPublic

Authored by dmgreen on Apr 20 2018, 4:49 AM.

Details

Summary

This is so it can be shared with other passes that may need
to do the same thing. For example unroll and jam in D41953.

Diff Detail

Event Timeline

dmgreen created this revision.Apr 20 2018, 4:49 AM

Any test possible here?

fhahn accepted this revision.Apr 20 2018, 7:57 AM

I think this is a reasonable code movement to make things slightly more modular. LGTM, but please wait with committing till next week, so other people have a chance to chime in.

lib/Transforms/Utils/LoopUnroll.cpp
255

Could you add a comment here summarizing which simplifications are done here?

822

I think this comment is stale now

This revision is now accepted and ready to land.Apr 20 2018, 7:57 AM
dmgreen updated this revision to Diff 146564.May 14 2018, 2:53 AM
dmgreen marked an inline comment as done.

Thanks Florian

Any test possible here?

This is just an NFC. Nothing should change.

lib/Transforms/Utils/LoopUnroll.cpp
822

I've reworded it a little, but I think it's mostly fine. I like that it explains that the code is now sensible and we can do normal stuff to it.

This revision was automatically updated to reflect the committed changes.
xbolva00 added inline comments.
llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
291 ↗(On Diff #147038)

Any future patch to perform LoopEarlyCSE as mentioned in the TODO note?