mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The current inlining strategy doesn't support inlining coroutines when there are multiple end_apply or abort_apply instructions in the caller, so refuse to inline such cases. Also, handle the case where there are no yield instructions in the callee, which can happen if e.g. the callee calls a no-return function. I also simplified the code somewhat by removing the vestiges of the code that tried to unify control flow with switches. As an unrelated fix, suppress function signature optimization for coroutines for now.
32 KiB
32 KiB