about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-06-02 12:58:07 -0700
committerGitHub <noreply@github.com>2024-06-02 12:58:07 -0700
commit713cdcd8036fe6a8639100efc93a31a58756356e (patch)
treeb273b0cbe9cf00a3f0d8645a4bee2072b09a7f22 /compiler/rustc_codegen_gcc
parenteda9d7f987de76b9d61c633a6ac328936e1b94f0 (diff)
parent849c5254afdeb96a740cfac989a382fde69b6067 (diff)
downloadrust-713cdcd8036fe6a8639100efc93a31a58756356e.tar.gz
rust-713cdcd8036fe6a8639100efc93a31a58756356e.zip
Rollup merge of #121062 - RustyYato:f32-midpoint, r=the8472
Change f32::midpoint to upcast to f64

This has been verified by kani as a correct optimization

see: https://github.com/rust-lang/rust/issues/110840#issuecomment-1942587398

The new implementation is branchless and only differs in which NaN values are produced (if any are produced at all), which is fine to change. Aside from NaN handling, this implementation produces bitwise identical results to the original implementation.

Question: do we need a codegen test for this? I didn't add one, since the original PR #92048 didn't have any codegen tests.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions