diff options
author | Tobias Grosser <tobias@grosser.es> | 2016-07-19 11:13:58 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2016-07-19 11:13:58 +0000 |
commit | 22117a8913debfc2d12671031b537753e7c9bb78 (patch) | |
tree | d3243543968fba26c3dd61fdcbc257664073b36e | |
parent | 38784128751e4b2522c7b6cfd0aee2519e0014df (diff) | |
download | bcm5719-llvm-22117a8913debfc2d12671031b537753e7c9bb78.tar.gz bcm5719-llvm-22117a8913debfc2d12671031b537753e7c9bb78.zip |
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
-rw-r--r-- | polly/lib/Support/RegisterPasses.cpp | 5 |
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() { |