[PATCH] D40007: [NewPassManager] Pass the -fdebug-pass-manager flag setting into the Analysis managers to match what we do in opt
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 14 00:48:37 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL318140: [NewPassManager] Pass the -fdebug-pass-manager flag setting into the Analysis… (authored by ctopper).
Changed prior to commit:
https://reviews.llvm.org/D40007?vs=122788&id=122792#toc
Repository:
rL LLVM
https://reviews.llvm.org/D40007
Files:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Index: cfe/trunk/lib/CodeGen/BackendUtil.cpp
===================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp
@@ -867,10 +867,10 @@
PassBuilder PB(TM.get(), PGOOpt);
- LoopAnalysisManager LAM;
- FunctionAnalysisManager FAM;
- CGSCCAnalysisManager CGAM;
- ModuleAnalysisManager MAM;
+ LoopAnalysisManager LAM(CodeGenOpts.DebugPassManager);
+ FunctionAnalysisManager FAM(CodeGenOpts.DebugPassManager);
+ CGSCCAnalysisManager CGAM(CodeGenOpts.DebugPassManager);
+ ModuleAnalysisManager MAM(CodeGenOpts.DebugPassManager);
// Register the AA manager first so that our version is the one used.
FAM.registerPass([&] { return PB.buildDefaultAAPipeline(); });
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40007.122792.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171114/fdc41c62/attachment.bin>
More information about the cfe-commits
mailing list