https://github.com/ChuanqiXu9 commented: Thanks for doing this. But CoroElide is not an ideal place. It was for erasing the allocation for coroutines specifically. I think we should do this in CoroSplit or CoroFrame. https://github.com/llvm/llvm-project/pull/174353