mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 02:09:54 +00:00
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:
parent
3878412875
commit
22117a8913
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user