summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2013-03-21 16:14:53 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2013-03-21 16:14:53 +0000
commit4e318abece5ac274d2b48d3c9ea405479a73fe1c (patch)
treef68015efc1148c0c2a1c84c5b2d58178d11cf90b
parent826b2af11237190bee053e3862ad2f1ef3c2136a (diff)
downloadbcm5719-llvm-4e318abece5ac274d2b48d3c9ea405479a73fe1c.tar.gz
bcm5719-llvm-4e318abece5ac274d2b48d3c9ea405479a73fe1c.zip
Do not canonicalize indvars with scev based codegen
Scev code generation can now handle scops with non canonical induction variables. Hence there is no need to introduce canonical ones any more. llvm-svn: 177644
-rw-r--r--polly/lib/RegisterPasses.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp
index a4e49dd9547..50a7b13bc78 100644
--- a/polly/lib/RegisterPasses.cpp
+++ b/polly/lib/RegisterPasses.cpp
@@ -18,6 +18,7 @@
#include "polly/ScopDetection.h"
#include "polly/ScopInfo.h"
#include "polly/TempScopInfo.h"
+#include "polly/CodeGen/BlockGenerators.h"
#include "polly/CodeGen/CodeGeneration.h"
#include "llvm/Analysis/Passes.h"
@@ -202,7 +203,9 @@ static void registerPollyPreoptPasses(llvm::PassManagerBase &PM) {
PM.add(llvm::createReassociatePass()); // Reassociate expressions
PM.add(llvm::createLoopRotatePass()); // Rotate Loop
PM.add(llvm::createInstructionCombiningPass());
- PM.add(polly::createIndVarSimplifyPass()); // Canonicalize indvars
+
+ if (!SCEVCodegen)
+ PM.add(polly::createIndVarSimplifyPass());
PM.add(polly::createCodePreparationPass());
PM.add(polly::createRegionSimplifyPass());
OpenPOWER on IntegriCloud