[PATCH] D23439: [PM] Port ModuleSummaryIndex analysis to new pass manager

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 20:46:07 PDT 2016


tejohnson created this revision.
tejohnson added a reviewer: mehdi_amini.
tejohnson added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

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.

https://reviews.llvm.org/D23439

Files:
  include/llvm/Analysis/ModuleSummaryAnalysis.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/Bitcode/Writer/BitcodeWriterPass.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  test/Bitcode/thinlto-summary-globalvar.ll
  tools/opt/NewPMDriver.cpp
  tools/opt/NewPMDriver.h
  tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23439.67794.patch
Type: text/x-patch
Size: 6671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160812/085da858/attachment.bin>


More information about the llvm-commits mailing list