[llvm] r292464 - [PM] Add LoopVectorize to the default module pipeline
Michael Kuperstein via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 18:21:54 PST 2017
Author: mkuper
Date: Wed Jan 18 20:21:54 2017
New Revision: 292464
URL: http://llvm.org/viewvc/llvm-project?rev=292464&view=rev
Log:
[PM] Add LoopVectorize to the default module pipeline
LV no longer "requires" LCSSA and LoopSimplify, and instead forms
them internally as required. So, there's nothing preventing it from
being enabled.
Modified:
llvm/trunk/lib/Passes/PassBuilder.cpp
llvm/trunk/test/Other/new-pass-manager.ll
Modified: llvm/trunk/lib/Passes/PassBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Passes/PassBuilder.cpp?rev=292464&r1=292463&r2=292464&view=diff
==============================================================================
--- llvm/trunk/lib/Passes/PassBuilder.cpp (original)
+++ llvm/trunk/lib/Passes/PassBuilder.cpp Wed Jan 18 20:21:54 2017
@@ -496,11 +496,7 @@ PassBuilder::buildPerModuleDefaultPipeli
// rather than on each loop in an inside-out manner, and so they are actually
// function passes.
OptimizePM.addPass(LoopDistributePass());
-#if 0
- // FIXME: LoopVectorize relies on "requiring" LCSSA which isn't supported in
- // the new PM.
OptimizePM.addPass(LoopVectorizePass());
-#endif
// FIXME: Need to port Loop Load Elimination and add it here.
OptimizePM.addPass(InstCombinePass());
Modified: llvm/trunk/test/Other/new-pass-manager.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/new-pass-manager.ll?rev=292464&r1=292463&r2=292464&view=diff
==============================================================================
--- llvm/trunk/test/Other/new-pass-manager.ll (original)
+++ llvm/trunk/test/Other/new-pass-manager.ll Wed Jan 18 20:21:54 2017
@@ -456,6 +456,7 @@
; CHECK-O: Starting llvm::Function pass manager run.
; CHECK-O: Running pass: Float2IntPass
; CHECK-O: Running pass: LoopDistributePass
+; CHECK-O: Running pass: LoopVectorizePass
; CHECK-O: Running pass: InstCombinePass
; CHECK-O: Running pass: SLPVectorizerPass
; CHECK-O: Running pass: SimplifyCFGPass
More information about the llvm-commits
mailing list