[Coroutine] Recommit Add statistics for the number of elided coroutine
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 1 Jul 2021 02:59:57 +0000 (10:59 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Thu, 1 Jul 2021 03:01:28 +0000 (11:01 +0800)
commit51fbd187066fe4a0ba0deb1beb75106b088edd21
tree13506fb0d3e152dfa1bca6b666a8dffcb55f2e4a
parent68751651235562b27b83788a5da4d23e431443c1
[Coroutine] Recommit Add statistics for the number of elided coroutine

Now we lack a benchmark to measure the performance change for each
commit.
Since coro elide is the main optimization in coroutine module, I wonder
it may be an estimation to count the number of elided coroutine in
private code bases.
e.g., for a certain commit, if we found that the number of elided goes
down, we could find it before the commit check-in.

Reviewed By: lxfind

Differential Revision: https://reviews.llvm.org/D105095
llvm/lib/Transforms/Coroutines/CoroElide.cpp
llvm/test/Transforms/Coroutines/coro-elide-count.ll [new file with mode: 0644]