forked from OSchip/llvm-project
[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. llvm-svn: 315003
This commit is contained in:
parent
7c79470c71
commit
e070721308
|
@ -670,6 +670,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
|
|||
|
||||
// Optimize globals now that the module is fully simplified.
|
||||
MPM.addPass(GlobalOptPass());
|
||||
MPM.addPass(GlobalDCEPass());
|
||||
|
||||
// Run partial inlining pass to partially inline functions that have
|
||||
// large bodies.
|
||||
|
|
|
@ -179,6 +179,7 @@
|
|||
; CHECK-O-NEXT: Running pass: PassManager<{{.*}}Module{{.*}}>
|
||||
; CHECK-O-NEXT: Starting llvm::Module pass manager run.
|
||||
; CHECK-O-NEXT: Running pass: GlobalOptPass
|
||||
; CHECK-O-NEXT: Running pass: GlobalDCEPass
|
||||
; CHECK-O-NEXT: Running pass: EliminateAvailableExternallyPass
|
||||
; CHECK-O-NEXT: Running pass: ReversePostOrderFunctionAttrsPass
|
||||
; CHECK-O-NEXT: Running pass: RequireAnalysisPass<{{.*}}GlobalsAA
|
||||
|
|
|
@ -168,6 +168,7 @@
|
|||
; CHECK-POSTLINK-O-NEXT: Running pass: PassManager<{{.*}}Module{{.*}}>
|
||||
; CHECK-POSTLINK-O-NEXT: Starting llvm::Module pass manager run.
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: GlobalOptPass
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: GlobalDCEPass
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: EliminateAvailableExternallyPass
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: ReversePostOrderFunctionAttrsPass
|
||||
; CHECK-POSTLINK-O-NEXT: Running pass: RequireAnalysisPass<{{.*}}GlobalsAA
|
||||
|
|
Loading…
Reference in New Issue