GPGPU: Do not run mostly sequential kernels in GPU
authorTobias Grosser <tobias@grosser.es>
Sun, 18 Sep 2016 08:31:09 +0000 (08:31 +0000)
committerTobias Grosser <tobias@grosser.es>
Sun, 18 Sep 2016 08:31:09 +0000 (08:31 +0000)
commitbc653f203189e9488751dd74e0c94bf4fb446eed
tree214285b1d15cc0f87f27cd6fa768b128df5c8e60
parent82f2af350819fe7bd63ceb828af85ef1c4fabc75
GPGPU: Do not run mostly sequential kernels in GPU

In case sequential kernels are found deeper in the loop tree than any parallel
kernel, the overall scop is probably mostly sequential. Hence, run it on the
CPU.

llvm-svn: 281849
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/test/GPGPU/mostly-sequential.ll [new file with mode: 0644]