diff options
author | Gor Nishanov <GorNishanov@gmail.com> | 2017-05-23 04:21:27 +0000 |
---|---|---|
committer | Gor Nishanov <GorNishanov@gmail.com> | 2017-05-23 04:21:27 +0000 |
commit | 6c4530c6b5045a9acd101c1221ea03a8d268f53f (patch) | |
tree | 8188e9d89f823a87441fc659449170d3ea08dd34 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 68fe6ee7685d5100f926716933277fcfb642483b (diff) | |
download | bcm5719-llvm-6c4530c6b5045a9acd101c1221ea03a8d268f53f.tar.gz bcm5719-llvm-6c4530c6b5045a9acd101c1221ea03a8d268f53f.zip |
[coroutines] Add support for deallocation elision
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.
llvm-svn: 303599
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions