diff options
| author | Krishna Sai Veera Reddy <krishnasai.veerareddy@gm.com> | 2019-11-29 15:22:44 -0700 |
|---|---|---|
| committer | Krishna Sai Veera Reddy <krishnasai.veerareddy@gm.com> | 2019-11-29 15:22:44 -0700 |
| commit | 4ca769ad091ef0018f5a20effaf4b4f428a034d7 (patch) | |
| tree | d389a56e4d6ab7d9a93d325008259702f4095e38 /src/test/debuginfo/enum-thinlto.rs | |
| parent | d99e0c6d02b159f305474f58c8c38027bb06e051 (diff) | |
| download | rust-4ca769ad091ef0018f5a20effaf4b4f428a034d7.tar.gz rust-4ca769ad091ef0018f5a20effaf4b4f428a034d7.zip | |
Optimize Ord trait implementation for bool
Casting the booleans to `i8`s and converting their difference into `Ordering` generates better assembly than casting them to `u8`s and comparing them.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
