[PATCH] D39145: [PM] Add pgo-memop-opt pass to the new pass manager
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 15:25:02 PDT 2017
xur updated this revision to Diff 119718.
xur added a comment.
Thanks for the review. Here is the updated patch.
https://reviews.llvm.org/D39145
Files:
lib/Passes/PassBuilder.cpp
Index: lib/Passes/PassBuilder.cpp
===================================================================
--- lib/Passes/PassBuilder.cpp
+++ lib/Passes/PassBuilder.cpp
@@ -362,6 +362,10 @@
invokePeepholeEPCallbacks(FPM, Level);
+ if (PGOOpt && !isOptimizingForSize(Level) &&
+ !PGOOpt->SampleProfileFile.empty())
+ FPM.addPass(PGOMemOPSizeOpt());
+
FPM.addPass(TailCallElimPass());
FPM.addPass(SimplifyCFGPass());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39145.119718.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171020/fafa514e/attachment.bin>
More information about the llvm-commits
mailing list