llvm.org GIT mirror llvm / 6bfe1d9
[NewPassManager] Run global dead code elimination after the inliner. This is the same exact change we did for the current pass manager in rL314997, but the new pass manager pipeline already happened to run GlobalOpt after the inliner, so we just insert a run of GDCE here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315003 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 1 year, 11 months ago
3 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
669669
670670 // Optimize globals now that the module is fully simplified.
671671 MPM.addPass(GlobalOptPass());
672 MPM.addPass(GlobalDCEPass());
672673
673674 // Run partial inlining pass to partially inline functions that have
674675 // large bodies.
178178 ; CHECK-O-NEXT: Running pass: PassManager<{{.*}}Module{{.*}}>
179179 ; CHECK-O-NEXT: Starting llvm::Module pass manager run.
180180 ; CHECK-O-NEXT: Running pass: GlobalOptPass
181 ; CHECK-O-NEXT: Running pass: GlobalDCEPass
181182 ; CHECK-O-NEXT: Running pass: EliminateAvailableExternallyPass
182183 ; CHECK-O-NEXT: Running pass: ReversePostOrderFunctionAttrsPass
183184 ; CHECK-O-NEXT: Running pass: RequireAnalysisPass<{{.*}}GlobalsAA
167167 ; CHECK-POSTLINK-O-NEXT: Running pass: PassManager<{{.*}}Module{{.*}}>
168168 ; CHECK-POSTLINK-O-NEXT: Starting llvm::Module pass manager run.
169169 ; CHECK-POSTLINK-O-NEXT: Running pass: GlobalOptPass
170 ; CHECK-POSTLINK-O-NEXT: Running pass: GlobalDCEPass
170171 ; CHECK-POSTLINK-O-NEXT: Running pass: EliminateAvailableExternallyPass
171172 ; CHECK-POSTLINK-O-NEXT: Running pass: ReversePostOrderFunctionAttrsPass
172173 ; CHECK-POSTLINK-O-NEXT: Running pass: RequireAnalysisPass<{{.*}}GlobalsAA