[Coroutines] Store the index for final suspend point in the exception path
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 20 Jun 2023 10:35:58 +0000 (18:35 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 20 Jun 2023 10:38:05 +0000 (18:38 +0800)
commitb6f30623af36b6858669775cbaa8521cccf042ba
tree4f5ca79b53055663ae08e0b0eee6b437d72c5965
parent2d3e6c440244ad94777aa13566b0376eb3c088f1
[Coroutines] Store the index for final suspend point in the exception path

Try to address part of
https://github.com/llvm/llvm-project/issues/61900.

It is not completely addressed since the original reproducer is not
fixed due to the final suspend point is optimized out in its special
case. But that is a relatively independent issue.
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-split-final-suspend.ll