Skip to content

Mark libc math shims with always_inline attribute #6956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2017
Merged

Mark libc math shims with always_inline attribute #6956

merged 2 commits into from
Jan 20, 2017

Conversation

stephentyrone
Copy link
Contributor

We want these to always be inlined, so mark them with ... always_inline. The compiler happened to do the right thing with them previously, but we shouldn't depend on that.

Un-XFAILED the tests on Linux, as I think they should work correctly now. Also added an explicit test that remainder gets inlined as well as sqrt.

rdar://problem/30043258

We want these to always be inlined, so mark them with ... always_inline.
The compiler happened to do the right thing with them previously, but we
shouldn't depend on that.

Un-XFAILED the tests on Linux, as I think they should work correctly now.
Also added an explicit test that remainder gets inlined as well as sqrt.
@stephentyrone
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - c3261db
Test requested by - @stephentyrone

I'm not sure why we can't generate and intrinsic on Linux for exp, but I don't
have a Linux machine on which to investigate.
@stephentyrone
Copy link
Contributor Author

@swift-ci Please test.

@stephentyrone stephentyrone merged commit e6c84d7 into swiftlang:master Jan 20, 2017
@stephentyrone stephentyrone deleted the math-shims-always-inline branch January 20, 2017 23:09
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.

2 participants