[Polly] [PPCGCodeGeneration] Deal with loops outside the Scop correctly in PPCGCodeGe...
authorSiddharth Bhat <siddu.druid@gmail.com>
Sun, 6 Aug 2017 02:39:05 +0000 (02:39 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Sun, 6 Aug 2017 02:39:05 +0000 (02:39 +0000)
commite53c924b0f06b993febc53c876ed57b6c436a73f
tree9e9d2740d8739fff120976118c535448e59970dd
parent0caed1fbe6a0c36d513a27f3275ec2b7d35a485f
[Polly] [PPCGCodeGeneration] Deal with loops outside the Scop correctly in PPCGCodeGeneration.

A Scop with a loop outside it is not handled currently by
PPCGCodeGeneration. The test case is such that the Scop has only one inner loop
that is detected. This currently breaks codegen.

The fix is to reuse the existing mechanism in `IslNodeBuilder` within
`GPUNodeBuilder.

Differential Revision: https://reviews.llvm.org/D36290

llvm-svn: 310193
polly/lib/CodeGen/IslNodeBuilder.cpp
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/test/GPGPU/loops-outside-scop.ll [new file with mode: 0644]