Open
Description
When returning std::noop_coroutine()
from await_suspend
, this always seems to result in:
lea std::__n4861::coroutine_handle<std::__n4861::noop_coroutine_promise,%rcx
jmp *(%rcx)
This delegates to a function that is simply ret
(<std::__n4861::coroutine_handlestd::__n4861::noop_coroutine_promise::__frame::__dummy_resume_destroy()>)
This seems like a missed optimization. Can we simply inline the ret
and skip the indirect jump?