diff options
author | Sebastian Pop <spop@codeaurora.org> | 2013-04-08 13:05:37 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2013-04-08 13:05:37 +0000 |
commit | cefec6d7e4b880ad283095e9f1b3b403b2597f34 (patch) | |
tree | f43ae027aba48fdf879533d29285a9805128a671 /polly/lib/RegisterPasses.cpp | |
parent | 4b14f4f9e6dc5af3e3529bf6d0335aebf14b4455 (diff) | |
download | bcm5719-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.cpp | 6 |
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. |