This is an archive of the discontinued LLVM Phabricator instance.

[PM] Port ModuleSummaryIndex analysis to new pass manager
ClosedPublic

Authored by tejohnson on Aug 11 2016, 8:46 PM.

Details

Summary

Port the ModuleSummaryAnalysisWrapperPass to the new pass manager.
Use it in the ported BitcodeWriterPass (similar to how we use the
legacy ModuleSummaryAnalysisWrapperPass in the legacy WriteBitcodePass).

Also, pass the -module-summary opt flag through to the new pass
manager pipeline and through to the bitcode writer pass, and add
a test that uses it.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 67794.Aug 11 2016, 8:46 PM
tejohnson retitled this revision from to [PM] Port ModuleSummaryIndex analysis to new pass manager.
tejohnson updated this object.
tejohnson added a reviewer: mehdi_amini.
tejohnson added a subscriber: llvm-commits.
mehdi_amini accepted this revision.Aug 11 2016, 9:57 PM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 11 2016, 9:57 PM
This revision was automatically updated to reflect the committed changes.