summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-07-19 15:56:25 +0000
committerTobias Grosser <tobias@grosser.es>2016-07-19 15:56:25 +0000
commit2d58a64e7ffd76a3c8cfd586aa72b171f10a38a9 (patch)
treec9fe19b974acf76dab5a8187903f897bfc856616 /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parentccf48a2732ca453ed6f849ae8600a2deed15dee2 (diff)
downloadbcm5719-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.cpp4
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);
OpenPOWER on IntegriCloud