llvm.org GIT mirror llvm / a28a251
[PM] Remove the defunt CGSCC-specific debug flag. Even before I sunk the debug flag into the opt tool this had been made obsolete by factoring the pass and analysis managers into a single set of templates that all used the core flag. No functionality changed here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225842 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 4 years ago
3 changed file(s) with 17 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
1111 #include "llvm/Support/Debug.h"
1212
1313 using namespace llvm;
14
15 static cl::opt
16 DebugPM("debug-cgscc-pass-manager", cl::Hidden,
17 cl::desc("Print CGSCC pass management debugging information"));
1814
1915 char CGSCCAnalysisManagerModuleProxy::PassID;
2016
44 ; files, but for now this is just going to step the new process through its
55 ; paces.
66
7 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
7 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
88 ; RUN: -passes=no-op-module %s 2>&1 \
99 ; RUN: | FileCheck %s --check-prefix=CHECK-MODULE-PASS
1010 ; CHECK-MODULE-PASS: Starting pass manager
1111 ; CHECK-MODULE-PASS-NEXT: Running pass: NoOpModulePass
1212 ; CHECK-MODULE-PASS-NEXT: Finished pass manager
1313
14 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
14 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
1515 ; RUN: -passes=no-op-cgscc %s 2>&1 \
1616 ; RUN: | FileCheck %s --check-prefix=CHECK-CGSCC-PASS
17 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
17 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
1818 ; RUN: -passes='cgscc(no-op-cgscc)' %s 2>&1 \
1919 ; RUN: | FileCheck %s --check-prefix=CHECK-CGSCC-PASS
2020 ; CHECK-CGSCC-PASS: Starting pass manager
2626 ; CHECK-CGSCC-PASS-NEXT: Finished pass manager
2727 ; CHECK-CGSCC-PASS-NEXT: Finished pass manager
2828
29 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
29 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
3030 ; RUN: -passes=no-op-function %s 2>&1 \
3131 ; RUN: | FileCheck %s --check-prefix=CHECK-FUNCTION-PASS
32 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
32 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
3333 ; RUN: -passes='function(no-op-function)' %s 2>&1 \
3434 ; RUN: | FileCheck %s --check-prefix=CHECK-FUNCTION-PASS
3535 ; CHECK-FUNCTION-PASS: Starting pass manager
121121 ; CHECK-NO-VERIFY-NOT: VerifierPass
122122 ; CHECK-NO-VERIFY: Finished pass manager
123123
124 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
124 ; RUN: opt -disable-output -debug-pass-manager \
125125 ; RUN: -passes='require,cgscc(require,function(require))' %s 2>&1 \
126126 ; RUN: | FileCheck %s --check-prefix=CHECK-ANALYSES
127127 ; CHECK-ANALYSES: Starting pass manager
136136
137137 ; Make sure no-op passes that preserve all analyses don't even try to do any
138138 ; analysis invalidation.
139 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
139 ; RUN: opt -disable-output -debug-pass-manager \
140140 ; RUN: -passes='require,cgscc(require,function(require))' %s 2>&1 \
141141 ; RUN: | FileCheck %s --check-prefix=CHECK-NO-OP-INVALIDATION
142142 ; CHECK-NO-OP-INVALIDATION: Starting pass manager
143143 ; CHECK-NO-OP-INVALIDATION-NOT: Invalidating all non-preserved analyses
144144
145 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
145 ; RUN: opt -disable-output -debug-pass-manager \
146146 ; RUN: -passes='require,require,require' %s 2>&1 \
147147 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-CACHE-MODULE-ANALYSIS-RESULTS
148148 ; CHECK-DO-CACHE-MODULE-ANALYSIS-RESULTS: Starting pass manager
150150 ; CHECK-DO-CACHE-MODULE-ANALYSIS-RESULTS: Running analysis: NoOpModuleAnalysis
151151 ; CHECK-DO-CACHE-MODULE-ANALYSIS-RESULTS-NOT: Running analysis: NoOpModuleAnalysis
152152
153 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
153 ; RUN: opt -disable-output -debug-pass-manager \
154154 ; RUN: -passes='require,invalidate,require' %s 2>&1 \
155155 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-INVALIDATE-MODULE-ANALYSIS-RESULTS
156156 ; CHECK-DO-INVALIDATE-MODULE-ANALYSIS-RESULTS: Starting pass manager
159159 ; CHECK-DO-INVALIDATE-MODULE-ANALYSIS-RESULTS: Invalidating analysis: NoOpModuleAnalysis
160160 ; CHECK-DO-INVALIDATE-MODULE-ANALYSIS-RESULTS: Running analysis: NoOpModuleAnalysis
161161
162 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
162 ; RUN: opt -disable-output -debug-pass-manager \
163163 ; RUN: -passes='cgscc(require,require,require)' %s 2>&1 \
164164 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-CACHE-CGSCC-ANALYSIS-RESULTS
165165 ; CHECK-DO-CACHE-CGSCC-ANALYSIS-RESULTS: Starting pass manager
167167 ; CHECK-DO-CACHE-CGSCC-ANALYSIS-RESULTS: Running analysis: NoOpCGSCCAnalysis
168168 ; CHECK-DO-CACHE-CGSCC-ANALYSIS-RESULTS-NOT: Running analysis: NoOpCGSCCAnalysis
169169
170 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
170 ; RUN: opt -disable-output -debug-pass-manager \
171171 ; RUN: -passes='cgscc(require,invalidate,require)' %s 2>&1 \
172172 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-INVALIDATE-CGSCC-ANALYSIS-RESULTS
173173 ; CHECK-DO-INVALIDATE-CGSCC-ANALYSIS-RESULTS: Starting pass manager
176176 ; CHECK-DO-INVALIDATE-CGSCC-ANALYSIS-RESULTS: Invalidating analysis: NoOpCGSCCAnalysis
177177 ; CHECK-DO-INVALIDATE-CGSCC-ANALYSIS-RESULTS: Running analysis: NoOpCGSCCAnalysis
178178
179 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
179 ; RUN: opt -disable-output -debug-pass-manager \
180180 ; RUN: -passes='function(require,require,require)' %s 2>&1 \
181181 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-CACHE-FUNCTION-ANALYSIS-RESULTS
182182 ; CHECK-DO-CACHE-FUNCTION-ANALYSIS-RESULTS: Starting pass manager
184184 ; CHECK-DO-CACHE-FUNCTION-ANALYSIS-RESULTS: Running analysis: NoOpFunctionAnalysis
185185 ; CHECK-DO-CACHE-FUNCTION-ANALYSIS-RESULTS-NOT: Running analysis: NoOpFunctionAnalysis
186186
187 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
187 ; RUN: opt -disable-output -debug-pass-manager \
188188 ; RUN: -passes='function(require,invalidate,require)' %s 2>&1 \
189189 ; RUN: | FileCheck %s --check-prefix=CHECK-DO-INVALIDATE-FUNCTION-ANALYSIS-RESULTS
190190 ; CHECK-DO-INVALIDATE-FUNCTION-ANALYSIS-RESULTS: Starting pass manager
193193 ; CHECK-DO-INVALIDATE-FUNCTION-ANALYSIS-RESULTS: Invalidating analysis: NoOpFunctionAnalysis
194194 ; CHECK-DO-INVALIDATE-FUNCTION-ANALYSIS-RESULTS: Running analysis: NoOpFunctionAnalysis
195195
196 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
196 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
197197 ; RUN: -passes='require,module(require,function(require,invalidate,require),require),require' %s 2>&1 \
198198 ; RUN: | FileCheck %s --check-prefix=CHECK-INVALIDATE-ALL
199199 ; CHECK-INVALIDATE-ALL: Starting pass manager
224224 ; CHECK-INVALIDATE-ALL-NOT: Running analysis: NoOpModuleAnalysis
225225 ; CHECK-INVALIDATE-ALL: Finished pass manager
226226
227 ; RUN: opt -disable-output -disable-verify -debug-pass-manager -debug-cgscc-pass-manager \
227 ; RUN: opt -disable-output -disable-verify -debug-pass-manager \
228228 ; RUN: -passes='require,module(require,cgscc(require,function(require,invalidate,require),require),require),require' %s 2>&1 \
229229 ; RUN: | FileCheck %s --check-prefix=CHECK-INVALIDATE-ALL-CG
230230 ; CHECK-INVALIDATE-ALL-CG: Starting pass manager
100100 ; RUN: | FileCheck %s --check-prefix=CHECK-UNBALANCED10
101101 ; CHECK-UNBALANCED10: unable to parse pass pipeline description
102102
103 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
103 ; RUN: opt -disable-output -debug-pass-manager \
104104 ; RUN: -passes=no-op-cgscc,no-op-cgscc %s 2>&1 \
105105 ; RUN: | FileCheck %s --check-prefix=CHECK-TWO-NOOP-CG
106106 ; CHECK-TWO-NOOP-CG: Starting pass manager
111111 ; CHECK-TWO-NOOP-CG: Finished pass manager
112112 ; CHECK-TWO-NOOP-CG: Finished pass manager
113113
114 ; RUN: opt -disable-output -debug-pass-manager -debug-cgscc-pass-manager \
114 ; RUN: opt -disable-output -debug-pass-manager \
115115 ; RUN: -passes='module(function(no-op-function),cgscc(no-op-cgscc,function(no-op-function),no-op-cgscc),function(no-op-function))' %s 2>&1 \
116116 ; RUN: | FileCheck %s --check-prefix=CHECK-NESTED-MP-CG-FP
117117 ; CHECK-NESTED-MP-CG-FP: Starting pass manager