]> granicus.if.org Git - clang/commit
OpenCL: Assume functions are convergent
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 6 Oct 2017 19:34:40 +0000 (19:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 6 Oct 2017 19:34:40 +0000 (19:34 +0000)
commitcc5ee4901e888a08cdea30b25e8df416f3f12be3
tree2e1ce2118a7667c9841c302a8c9e3db0e4774292
parent0cbff250f64632bd414661e87288a116d2cefe25
OpenCL: Assume functions are convergent

This was done for CUDA functions in r261779, and for the same
reason this also needs to be done for OpenCL. An arbitrary
function could have a barrier() call in it, which in turn
requires the calling function to be convergent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315094 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
lib/CodeGen/CGCall.cpp
test/CodeGenOpenCL/amdgpu-attrs.cl
test/CodeGenOpenCL/convergent.cl