[polly] r275969 - GPGPU: Disable invariant load hoisting for GPU code generation

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 04:13:59 PDT 2016


Author: grosser
Date: Tue Jul 19 06:13:58 2016
New Revision: 275969

URL: http://llvm.org/viewvc/llvm-project?rev=275969&view=rev
Log:
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.

Modified:
    polly/trunk/lib/Support/RegisterPasses.cpp

Modified: polly/trunk/lib/Support/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/RegisterPasses.cpp?rev=275969&r1=275968&r2=275969&view=diff
==============================================================================
--- polly/trunk/lib/Support/RegisterPasses.cpp (original)
+++ polly/trunk/lib/Support/RegisterPasses.cpp Tue Jul 19 06:13:58 2016
@@ -260,6 +260,11 @@ void registerPollyPasses(llvm::legacy::P
 
   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() {




More information about the llvm-commits mailing list