mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
4f7d9d4ad8
Invert comparison in `uN::checked_sub` After #124114, LLVM no longer combines the comparison and subtraction in `uN::checked_sub` when either operand is a constant (demo: https://rust.godbolt.org/z/MaeoYbsP1). The difference is more pronounced when the expression is slightly more complex (https://rust.godbolt.org/z/4rPavsYdc). This is due to the use of `>=` here: |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |