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
This commit is contained in:
Tobias Grosser 2016-07-19 11:13:58 +00:00
parent 3878412875
commit 22117a8913

View File

@ -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() {