Skip to content

Conversation

aschwaighofer
Copy link
Contributor

Adds return to a few tail calls and the swiftasynccc convention attribute to facilitate tail call optimization.

rdar://76652421

aschwaighofer and others added 2 commits May 17, 2021 10:25
… switch_task_impl.

Without this hack the call will leave a stack frame around (not tail
call optimized) and blow the stack if we call switch_task often enough.

Ideally, clang would emit this call as `musttail` but currently it does
not.

rdar://76652421
@DougGregor
Copy link
Member

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 684dbe2

@varungandhi-apple
Copy link
Contributor

5.5 PR: #37465

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 684dbe2

@varungandhi-apple
Copy link
Contributor

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 684dbe2

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 684dbe2

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants