[PATCH] D31590: [coroutines] Add support for deallocation elision
Gor Nishanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 2 20:34:05 PDT 2017
GorNishanov created this revision.
Wrap deallocation code with:
if (auto *mem = coro.free()) Deallocate
When backend decides to elide allocations it will replace coro.free with nullptr to suppress deallocation code.
https://reviews.llvm.org/D31590
Files:
lib/CodeGen/CGCoroutine.cpp
test/CodeGenCoroutines/coro-alloc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31590.93822.patch
Type: text/x-patch
Size: 4599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170403/59640a25/attachment.bin>
More information about the cfe-commits
mailing list