diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-07-19 15:56:25 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-07-19 15:56:25 +0000 |
| commit | 2d58a64e7ffd76a3c8cfd586aa72b171f10a38a9 (patch) | |
| tree | c9fe19b974acf76dab5a8187903f897bfc856616 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | ccf48a2732ca453ed6f849ae8600a2deed15dee2 (diff) | |
| download | bcm5719-llvm-2d58a64e7ffd76a3c8cfd586aa72b171f10a38a9.tar.gz bcm5719-llvm-2d58a64e7ffd76a3c8cfd586aa72b171f10a38a9.zip | |
GPGPU: Bail out of scops with hoisted invariant loads
This is currently not supported and will only be added later. Also update the
test cases to ensure no invariant code hoisting is applied.
llvm-svn: 275987
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 050a71e0940..1621252ba10 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -1013,6 +1013,10 @@ public: DL = &S->getRegion().getEntry()->getParent()->getParent()->getDataLayout(); RI = &getAnalysis<RegionInfoPass>().getRegionInfo(); + // We currently do not support scops with invariant loads. + if (S->hasInvariantAccesses()) + return false; + auto PPCGScop = createPPCGScop(); auto PPCGProg = createPPCGProg(PPCGScop); auto PPCGGen = generateGPU(PPCGScop, PPCGProg); |

