Page MenuHomePhabricator

[coroutines] Add support for deallocation elision

Authored by GorNishanov on Apr 2 2017, 8:34 PM.



Wrap deallocation code with:

if (auto *mem = Deallocate

When backend decides to elide allocations it will replace with nullptr to suppress deallocation code.

Diff Detail

Event Timeline

Commited: r303599 = abbd4f85db96b0ed1478e2ee52e9f1eec7404131

GorNishanov removed 1 blocking reviewer(s): majnemer.May 22 2017, 9:46 PM
This revision is now accepted and ready to land.May 22 2017, 9:46 PM
GorNishanov closed this revision.May 22 2017, 9:47 PM