[PATCH] D38113: OpenCL: Assume functions are convergent
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 21 11:01:04 PDT 2017
Anastasia added a comment.
The problem of adding this attribute conservatively for all functions is that it prevents some optimizations to happen. I agree to commit this as a temporary fix to guarantee correctness of generated code. But if we ask to add the `convergent` attribute into the spec we can avoid doing this in the compiler?
https://reviews.llvm.org/D38113
More information about the cfe-commits
mailing list