summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-07-19 11:13:58 +0000
committerTobias Grosser <tobias@grosser.es>2016-07-19 11:13:58 +0000
commit22117a8913debfc2d12671031b537753e7c9bb78 (patch)
treed3243543968fba26c3dd61fdcbc257664073b36e
parent38784128751e4b2522c7b6cfd0aee2519e0014df (diff)
downloadbcm5719-llvm-22117a8913debfc2d12671031b537753e7c9bb78.tar.gz
bcm5719-llvm-22117a8913debfc2d12671031b537753e7c9bb78.zip
GPGPU: Disable invariant load hoisting for GPU code generation
This simplifies the upcoming patches to add code generation for ScopStmts. Load hoisting support will later be added in a separate commit. This commit will be implicitly tested by the subsequent GPGPU changes. llvm-svn: 275969
-rw-r--r--polly/lib/Support/RegisterPasses.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index 822b23b1d21..631240ae39d 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -260,6 +260,11 @@ void registerPollyPasses(llvm::legacy::PassManagerBase &PM) {
if (CFGPrinter)
PM.add(llvm::createCFGPrinterPass());
+
+ if (Target == TARGET_GPU) {
+ // Invariant load hoisting not yet supported by GPU code generation.
+ PollyInvariantLoadHoisting = false;
+ }
}
static bool shouldEnablePolly() {
OpenPOWER on IntegriCloud