aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-05-03 16:09:56 -0700
committerArthur Eubanks <aeubanks@google.com>2021-05-07 21:51:47 -0700
commit34a8a437bf20e0a340c19ed1fdb9cca584d43da1 (patch)
tree97fc1e85ac69c6ead385739c6b4191e98407700d /llvm/lib/LTO/LTOBackend.cpp
parent223852d76fccc85cc5a844feec94781e8c5320ff (diff)
downloadllvm-34a8a437bf20e0a340c19ed1fdb9cca584d43da1.zip
llvm-34a8a437bf20e0a340c19ed1fdb9cca584d43da1.tar.gz
llvm-34a8a437bf20e0a340c19ed1fdb9cca584d43da1.tar.bz2
[NewPM] Hide pass manager debug logging behind -debug-pass-manager-verbose
Printing pass manager invocations is fairly verbose and not super useful. This allows us to remove DebugLogging from pass managers and PassBuilder since all logging (aside from analysis managers) goes through instrumentation now. This has the downside of never being able to print the top level pass manager via instrumentation, but that seems like a minor downside. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D101797
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 10f0c9e..35fa9bd 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -229,7 +229,7 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
PassInstrumentationCallbacks PIC;
StandardInstrumentations SI(Conf.DebugPassManager);
SI.registerCallbacks(PIC, &FAM);
- PassBuilder PB(Conf.DebugPassManager, TM, Conf.PTO, PGOOpt, &PIC);
+ PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC);
RegisterPassPlugins(Conf.PassPlugins, PB);
@@ -259,7 +259,7 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
PB.registerLoopAnalyses(LAM);
PB.crossRegisterProxies(LAM, FAM, CGAM, MAM);
- ModulePassManager MPM(Conf.DebugPassManager);
+ ModulePassManager MPM;
if (!Conf.DisableVerify)
MPM.addPass(VerifierPass());