This is an archive of the discontinued LLVM Phabricator instance.

Add LoopSink pass for PGO.
AbandonedPublic

Authored by danielcdh on Oct 27 2016, 9:42 AM.

Details

Reviewers
davidxl
hfinkel
Summary

PGO has accurate profile info that can be used to enable LoopSink pass

Event Timeline

danielcdh updated this revision to Diff 76058.Oct 27 2016, 9:42 AM
danielcdh retitled this revision from to Add LoopSink pass for PGO..
danielcdh updated this object.
danielcdh added reviewers: davidxl, hfinkel.
danielcdh added a subscriber: llvm-commits.
davidxl added inline comments.Oct 27 2016, 4:22 PM
lib/CodeGen/BackendUtil.cpp
156

Is this pass strictly needed?

danielcdh updated this revision to Diff 76209.Oct 28 2016, 9:39 AM

add comment why we need inst simplify

We need this pass to remove LCSSA nodes because this will be the last loop pass.

Another question is: shall we pin this pass to PGO only? If not, we can simply add it to lib/Transforms/IPO/PassManagerBuilder.cpp

danielcdh abandoned this revision.Oct 31 2016, 9:31 AM

Close this revision and a new patch has be sent: https://reviews.llvm.org/D26155