diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-03-10 11:24:11 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-03-10 11:24:11 +0000 |
commit | f1b2c7b945d25e690d757edad18503e9bf8b8e49 (patch) | |
tree | 2eaa2f119f9222e6dcb6d5dffb6db18d70f619f9 /test/Other | |
parent | c9fd7655a043123e17544c3754bb23439dce390d (diff) |
[CG] Add a new pass manager printer pass for the old call graph and
actually finish wiring up the old call graph.
There were bugs in the old call graph that hadn't been caught because it
wasn't being tested. It wasn't being tested because it wasn't in the
pipeline system and we didn't have a printing pass to run in tests. This
fixes all of that.
As for why I'm still keeping the old call graph alive its so that I can
port GlobalsAA to the new pass manager with out forking it to work with
the lazy call graph. That's clearly the right eventual design, but it
seems pragmatic to defer that until its necessary. The old call graph
works just fine for GlobalsAA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263104 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r-- | test/Other/new-pass-manager.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Other/new-pass-manager.ll b/test/Other/new-pass-manager.ll index 67a6672165b..1ffd422c6a2 100644 --- a/test/Other/new-pass-manager.ll +++ b/test/Other/new-pass-manager.ll @@ -323,6 +323,14 @@ ; CHECK-MEMDEP: Running analysis: MemoryDependenceAnalysis ; CHECK-MEMDEP: Finished llvm::Module pass manager run +; RUN: opt -disable-output -disable-verify -debug-pass-manager %s 2>&1 \ +; RUN: -passes='require<callgraph>' \ +; RUN: | FileCheck %s --check-prefix=CHECK-CALLGRAPH +; CHECK-CALLGRAPH: Starting llvm::Module pass manager run +; CHECK-CALLGRAPH: Running pass: RequireAnalysisPass +; CHECK-CALLGRAPH: Running analysis: CallGraphAnalysis +; CHECK-CALLGRAPH: Finished llvm::Module pass manager run + ; RUN: opt -disable-output -disable-verify -debug-pass-manager \ ; RUN: -passes='default<O0>' %s 2>&1 \ ; RUN: | FileCheck %s --check-prefix=CHECK-O2 |