[PATCH] D33810: [PM] Add GVNSink to the pipeline
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 16:47:15 PDT 2017
davide created this revision.
Again, another oversight. With this, the two pipelines should be in sync again (modulo LoopUnswitch, but I know you're already working on that :))
https://reviews.llvm.org/D33810
Files:
lib/Passes/PassBuilder.cpp
Index: lib/Passes/PassBuilder.cpp
===================================================================
--- lib/Passes/PassBuilder.cpp
+++ lib/Passes/PassBuilder.cpp
@@ -164,6 +164,10 @@
"enable-npm-gvn-hoist", cl::init(false), cl::Hidden,
cl::desc("Enable the GVN hoisting pass for the new PM (default = off)"));
+static cl::opt<bool> EnableGVNSink(
+ "enable-npm-gvn-sink", cl::init(false), cl::Hidden,
+ cl::desc("Enable the GVN hoisting pass for the new PM (default = off)"));
+
static Regex DefaultAliasRegex(
"^(default|thinlto-pre-link|thinlto|lto-pre-link|lto)<(O[0123sz])>$");
@@ -314,6 +318,12 @@
if (EnableGVNHoist)
FPM.addPass(GVNHoistPass());
+ // Global value numbering based sinking.
+ if (EnableGVNSink) {
+ FPM.addPass(GVNSinkPass());
+ FPM.addPass(SimplifyCFGPass());
+ }
+
// Speculative execution if the target has divergent branches; otherwise nop.
FPM.addPass(SpeculativeExecutionPass());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33810.101137.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/4f757706/attachment.bin>
More information about the llvm-commits
mailing list