[coroutines] Add support for deallocation elision

Description

[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.

Details

Committed
GorNishanovMay 22 2017, 9:21 PM
Parents
rL303598: [coroutines] Replace all coro.frame builtins with an SSA value of coro.begin
Branches
Unknown
Tags
Unknown