summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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