diff options
| author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-25 14:48:24 +0000 |
|---|---|---|
| committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-25 14:48:24 +0000 |
| commit | a12f807f3366a6ccc4fd343d4feecc63308a0be8 (patch) | |
| tree | 2770026978a20710198be692c10e754924906b16 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | 812bc3c983fe999fec2ff1bf1724ae74e424f9f5 (diff) | |
[PPCGCodeGeneration] Enable GPU code generation with invariant loads.
The condition that disallowed code generation in PPCGCodeGeneration with
invariant loads is not required. I haven't been able to construct a
counterexample where this generates invalid code.
Differential Revision: https://reviews.llvm.org/D34604
llvm-svn: 306245
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index d8d735006d33..cff500e3bd95 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2707,10 +2707,6 @@ public: DL = &S->getRegion().getEntry()->getModule()->getDataLayout(); RI = &getAnalysis<RegionInfoPass>().getRegionInfo(); - // We currently do not support scops with invariant loads. - if (S->hasInvariantAccesses()) - return false; - // We currently do not support functions inside kernels, as code // generation will need to offload function calls to the kernel. // This may lead to a kernel trying to call a function on the host. |
