Skip to content

[5.10] Use [u]int64 -> FloatingPoint conversions even on 32b targets #70542

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

Conversation

stephentyrone
Copy link
Contributor

This means that we'll end up going int32 -> int64 -> float/double sometiems, but LLVM knows how to optimize away the intermediate conversion so we end up with just a normal 32b->float conversion as desired, and we get much, much better performance on oddball platforms like arm64_32.

cherry-pick of #70541

fixes rdar://119853806

…tforms.

This means that we'll end up going int32 -> int64 -> float/double sometiems, but LLVM knows how to optimize away the intermediate conversion so we end up with just a normal 32b->float conversion as desired, and we get much, much better performance on oddball platforms like arm64_32.
@stephentyrone stephentyrone requested a review from a team as a code owner December 19, 2023 18:44
@stephentyrone stephentyrone changed the title Use [u]int64 -> FloatingPoint conversions even on 32b targets [5.10] Use [u]int64 -> FloatingPoint conversions even on 32b targets Dec 19, 2023
@stephentyrone
Copy link
Contributor Author

@swift-ci test

@stephentyrone
Copy link
Contributor Author

@swift-ci test windows

@stephentyrone stephentyrone enabled auto-merge (squash) December 21, 2023 20:33
@stephentyrone
Copy link
Contributor Author

@swift-ci smoke test

@stephentyrone stephentyrone disabled auto-merge January 2, 2024 14:25
@stephentyrone stephentyrone merged commit 5342ef1 into swiftlang:release/5.10 Jan 2, 2024
@stephentyrone stephentyrone deleted the 64b-ought-to-be-enough-for-anybody-5.10 branch January 2, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants