diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-08-12 13:53:02 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-08-12 13:53:02 +0000 |
commit | f93b246f8b22137abe69842ab4a99747d95a7f7a (patch) | |
tree | 95b3703eb5458c5152ed11937dbd23d24a1f9cd4 /llvm/test/Bitcode | |
parent | 565bdd9fed999909827d75a4bea27ace05b4445d (diff) | |
download | bcm5719-llvm-f93b246f8b22137abe69842ab4a99747d95a7f7a.tar.gz bcm5719-llvm-f93b246f8b22137abe69842ab4a99747d95a7f7a.zip |
[PM] Port ModuleSummaryIndex analysis to new pass manager
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.
Reviewers: mehdi_amini
Subscribers: llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D23439
llvm-svn: 278508
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/thinlto-summary-globalvar.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/thinlto-summary-globalvar.ll b/llvm/test/Bitcode/thinlto-summary-globalvar.ll index 56f9c078875..f7928303e75 100644 --- a/llvm/test/Bitcode/thinlto-summary-globalvar.ll +++ b/llvm/test/Bitcode/thinlto-summary-globalvar.ll @@ -1,4 +1,6 @@ ; RUN: opt -module-summary %s -o - | llvm-bcanalyzer -dump | FileCheck %s +; Check with new pass manager (by enabling a random pass in the new pipeline). +; RUN: opt -passes=gvn -module-summary %s -o - | llvm-bcanalyzer -dump | FileCheck %s ; CHECK: <GLOBALVAL_SUMMARY_BLOCK |