summaryrefslogtreecommitdiffstats
path: root/polly/lib/RegisterPasses.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2013-04-08 13:05:37 +0000
committerSebastian Pop <spop@codeaurora.org>2013-04-08 13:05:37 +0000
commitcefec6d7e4b880ad283095e9f1b3b403b2597f34 (patch)
treef43ae027aba48fdf879533d29285a9805128a671 /polly/lib/RegisterPasses.cpp
parent4b14f4f9e6dc5af3e3529bf6d0335aebf14b4455 (diff)
downloadbcm5719-llvm-cefec6d7e4b880ad283095e9f1b3b403b2597f34.tar.gz
bcm5719-llvm-cefec6d7e4b880ad283095e9f1b3b403b2597f34.zip
SCEVCodegen should not run createIndVarSimplifyPass
llvm-svn: 179018
Diffstat (limited to 'polly/lib/RegisterPasses.cpp')
-rw-r--r--polly/lib/RegisterPasses.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp
index c8ae238fdef..9fe482da1c1 100644
--- a/polly/lib/RegisterPasses.cpp
+++ b/polly/lib/RegisterPasses.cpp
@@ -213,8 +213,10 @@ static void registerCanonicalicationPasses(llvm::PassManagerBase &PM) {
// the regioninfo pass does currently not recover simple regions.
// As a result we need to run the RegionSimplify pass again to
// recover them
- PM.add(polly::createIndVarSimplifyPass());
- PM.add(polly::createRegionSimplifyPass());
+ if (!SCEVCodegen) {
+ PM.add(polly::createIndVarSimplifyPass());
+ PM.add(polly::createRegionSimplifyPass());
+ }
}
/// @brief Register Polly passes such that they form a polyhedral optimizer.
OpenPOWER on IntegriCloud