Skip to content

Remove now-redundant range check on u128 -> f32 casts - #67328

Merged
bors merged 1 commit into
rust-lang:masterfrom
hanna-kruppe:simplify-u128-f32-cast
Dec 20, 2019
Merged

Remove now-redundant range check on u128 -> f32 casts#67328
bors merged 1 commit into
rust-lang:masterfrom
hanna-kruppe:simplify-u128-f32-cast

Conversation

@hanna-kruppe

Copy link
Copy Markdown
Contributor

This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.

Closes#51872

This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @matthewjasper

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 15, 2019
@matthewjasper

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Dec 15, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 6ad0b55 has been approved by matthewjasper

@bors

bors commented Dec 15, 2019

Copy link
Copy Markdown
Collaborator

🌲 The tree is currently closed for pull requests below priority 1000, this pull request will be tested once the tree is reopened

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 15, 2019
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 17, 2019
…atthewjasper
Remove now-redundant range check on u128 -> f32 casts
This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 19, 2019
…atthewjasper
Remove now-redundant range check on u128 -> f32 casts
This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
bors added a commit that referenced this pull request Dec 19, 2019
Rollup of 9 pull requests
Successful merges:
- #67321 (make htons const fn)
- #67328 (Remove now-redundant range check on u128 -> f32 casts)
- #67333 ([mir-opt] Fix `Inline` pass to handle inlining into `box` expressions)
- #67354 (Fix pointing at arg when cause is outside of call)
- #67363 (Fix handling of wasm import modules and names)
- #67382 (Remove some unnecessary `ATTR_*` constants.)
- #67389 (Remove `SO_NOSIGPIPE` dummy variable on platforms that don't use it.)
- #67393 (Enable opting out of specific default LLVM arguments.)
- #67394 (Remove outdated references to @t from comments)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Dec 19, 2019
…atthewjasper
Remove now-redundant range check on u128 -> f32 casts
This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
@CentrilCentril mentioned this pull request Dec 19, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 19, 2019
Rollup of 7 pull requests
Successful merges:
- rust-lang#66670 (Normalize ident)
- rust-lang#66755 (Remove a const-if-hack in RawVec)
- rust-lang#67127 (Use structured suggestion for disambiguating method calls)
- rust-lang#67281 (add string.insert benchmarks)
- rust-lang#67328 (Remove now-redundant range check on u128 -> f32 casts)
- rust-lang#67392 (Fix unresolved type span inside async object)
- rust-lang#67421 (Fix internal documentation typo)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Dec 19, 2019
Rollup of 7 pull requests
Successful merges:
- rust-lang#66670 (Normalize ident)
- rust-lang#66755 (Remove a const-if-hack in RawVec)
- rust-lang#67127 (Use structured suggestion for disambiguating method calls)
- rust-lang#67281 (add string.insert benchmarks)
- rust-lang#67328 (Remove now-redundant range check on u128 -> f32 casts)
- rust-lang#67392 (Fix unresolved type span inside async object)
- rust-lang#67421 (Fix internal documentation typo)
Failed merges:
r? @ghost
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Dec 19, 2019
Rollup of 7 pull requests
Successful merges:
- rust-lang#66670 (Normalize ident)
- rust-lang#66755 (Remove a const-if-hack in RawVec)
- rust-lang#67127 (Use structured suggestion for disambiguating method calls)
- rust-lang#67281 (add string.insert benchmarks)
- rust-lang#67328 (Remove now-redundant range check on u128 -> f32 casts)
- rust-lang#67392 (Fix unresolved type span inside async object)
- rust-lang#67421 (Fix internal documentation typo)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Dec 20, 2019
…atthewjasper
Remove now-redundant range check on u128 -> f32 casts
This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
@CentrilCentril mentioned this pull request Dec 20, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 20, 2019
…atthewjasper
Remove now-redundant range check on u128 -> f32 casts
This code was added to avoid UB in LLVM 6 and earlier, but we no longer support those LLVM versions.
Since https://reviews.llvm.org/D47807 (released in LLVM 7), uitofp does exactly what we need.
Closesrust-lang#51872
@CentrilCentril mentioned this pull request Dec 20, 2019
bors added a commit that referenced this pull request Dec 20, 2019
Rollup of 7 pull requests
Successful merges:
- #66755 (Remove a const-if-hack in RawVec)
- #67127 (Use structured suggestion for disambiguating method calls)
- #67219 (Fix up Command Debug output when arg0 is specified.)
- #67285 (Indicate origin of where type parameter for uninferred types )
- #67328 (Remove now-redundant range check on u128 -> f32 casts)
- #67367 (Move command line option definitions into a dedicated file)
- #67442 (Remove `SOCK_CLOEXEC` dummy variable on platforms that don't use it.)
Failed merges:
r? @ghost
@bors
bors merged commit 6ad0b55 into rust-lang:masterDec 20, 2019
@hanna-kruppe
hanna-kruppe deleted the simplify-u128-f32-cast branch February 2, 2026 22:14
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify u128->f32 casts thanks to LLVM r334777

4 participants

@hanna-kruppe@rust-highfive@matthewjasper@bors