[PATCH] D50104: [OpenCL] Always emit alloca in entry block for enqueue_kernel builtin

Scott Linder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 2 09:41:55 PDT 2018


scott.linder added a comment.

I still don't quite see what you describe; with that change all of the lifetime.end calls pile up just before the enclosing function returns, not after each call to enqueue_kernel. Looking at https://clang.llvm.org/doxygen/EHScopeStack_8h_source.html#l00078 I don't see any option which isn't based on scope. The lifetime.start calls do occur where I would expect, though, so I will update the patch.


https://reviews.llvm.org/D50104





More information about the cfe-commits mailing list