summaryrefslogtreecommitdiffstats
path: root/polly/lib/Transform/CodePreparation.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-06 20:13:15 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-06 20:13:15 +0000
commit0ff23ec54428cb44f35ddb178843c7b7caada7e0 (patch)
tree645e1a02234c752a7dd5cbc118583229517ecbd1 /polly/lib/Transform/CodePreparation.cpp
parent4e8598eee3575db313966f24ffb116e06d38ea9c (diff)
downloadbcm5719-llvm-0ff23ec54428cb44f35ddb178843c7b7caada7e0.tar.gz
bcm5719-llvm-0ff23ec54428cb44f35ddb178843c7b7caada7e0.zip
Model PHI nodes without demoting them
This allows us to model PHI nodes in the polyhedral description without demoting them. The modeling however will result in the same accesses as the demotion would have introduced. Differential Revision: http://reviews.llvm.org/D7415 llvm-svn: 228433
Diffstat (limited to 'polly/lib/Transform/CodePreparation.cpp')
-rw-r--r--polly/lib/Transform/CodePreparation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp
index 5847c695968..5aba77e7662 100644
--- a/polly/lib/Transform/CodePreparation.cpp
+++ b/polly/lib/Transform/CodePreparation.cpp
@@ -27,6 +27,7 @@
//===----------------------------------------------------------------------===//
#include "polly/LinkAllPasses.h"
+#include "polly/ScopDetection.h"
#include "polly/CodeGen/BlockGenerators.h"
#include "polly/Support/ScopHelper.h"
#include "llvm/Analysis/DominanceFrontier.h"
@@ -201,6 +202,9 @@ void CodePreparation::getAnalysisUsage(AnalysisUsage &AU) const {
}
bool CodePreparation::runOnFunction(Function &F) {
+ if (PollyModelPHINodes)
+ return false;
+
LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
SE = &getAnalysis<ScalarEvolution>();
OpenPOWER on IntegriCloud