From 22117a8913debfc2d12671031b537753e7c9bb78 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 19 Jul 2016 11:13:58 +0000 Subject: [PATCH] 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 --- polly/lib/Support/RegisterPasses.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 822b23b..631240a 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() { -- 2.7.4