[PATCH] D82314: [RFC][Coroutines] Optimize the lifespan of temporary co_await object

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 20:31:47 PDT 2020


lxfind updated this revision to Diff 272904.
lxfind added a comment.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Tackle this problem inside CoroSplit as an optimization. Instead of only handling one particular case, we now look at every local variable in the coroutine, and sink their lifetime start markers when possible. This will bring in more benefits than doing so during IR emit. Confirmed that it works.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82314/new/

https://reviews.llvm.org/D82314

Files:
  llvm/lib/Transforms/Coroutines/CoroSplit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82314.272904.patch
Type: text/x-patch
Size: 5061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200624/8846d0c5/attachment.bin>


More information about the llvm-commits mailing list