[PATCH] D38113: OpenCL: Assume functions are convergent

Matt Arsenault via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 17:32:28 PDT 2017


arsenm created this revision.
Herald added a subscriber: wdng.

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.


https://reviews.llvm.org/D38113

Files:
  include/clang/Basic/LangOptions.h
  lib/CodeGen/CGCall.cpp
  test/CodeGenOpenCL/convergent.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38113.116122.patch
Type: text/x-patch
Size: 7297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170921/63ee5f49/attachment.bin>


More information about the cfe-commits mailing list