diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-08-03 12:00:07 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-08-03 12:00:07 +0000 |
| commit | 629109b6333083d618d0b2d5759c6f43456639bc (patch) | |
| tree | 9705ed5a4d5b85da486322d32b8b2ce0ad8ebec0 /polly/lib/Analysis/ScopDetection.cpp | |
| parent | c59b3a2236646c616ceaea8b1a4f71ac70068e5e (diff) | |
| download | bcm5719-llvm-629109b6333083d618d0b2d5759c6f43456639bc.tar.gz bcm5719-llvm-629109b6333083d618d0b2d5759c6f43456639bc.zip | |
GPGPU: Mark kernel functions as polly.skip
Otherwise, we would try to re-optimize them with Polly-ACC and possibly even
generate kernels that try to offload themselves, which does not work as the
GPURuntime is not available on the accelerator and also does not make any
sense.
llvm-svn: 277589
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 3770ae06c4c..433a72f6aea 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1402,7 +1402,7 @@ bool ScopDetection::isValidRegion(DetectionContext &Context) const { return true; } -void ScopDetection::markFunctionAsInvalid(Function *F) const { +void ScopDetection::markFunctionAsInvalid(Function *F) { F->addFnAttr(PollySkipFnAttr); } |

