[PATCH] D69596: [Attributor] Add the Attributor to the new PM pipeline
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 17:16:39 PDT 2019
jdoerfert created this revision.
jdoerfert added reviewers: hfinkel, lebedev.ri.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.
For now, this matches the old pipeline where the Attributor is run early
as module pass (but disabled by default through an internal flag).
We are working on an CG-SCC pass version that we can run later as well.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69596
Files:
llvm/lib/Passes/PassBuilder.cpp
Index: llvm/lib/Passes/PassBuilder.cpp
===================================================================
--- llvm/lib/Passes/PassBuilder.cpp
+++ llvm/lib/Passes/PassBuilder.cpp
@@ -723,6 +723,7 @@
MPM.addPass(PGOIndirectCallPromotion(Phase == ThinLTOPhase::PostLink,
true /* SamplePGO */));
}
+ MPM.addPass(AttributorPass());
// Interprocedural constant propagation now that basic cleanup has occurred
// and prior to optimizing globals.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69596.226993.patch
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191030/63cde977/attachment.bin>
More information about the llvm-commits
mailing list