about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorKrishna Sai Veera Reddy <krishnasai.veerareddy@gm.com>2019-11-29 15:22:44 -0700
committerKrishna Sai Veera Reddy <krishnasai.veerareddy@gm.com>2019-11-29 15:22:44 -0700
commit4ca769ad091ef0018f5a20effaf4b4f428a034d7 (patch)
treed389a56e4d6ab7d9a93d325008259702f4095e38 /src/test/debuginfo/enum-thinlto.rs
parentd99e0c6d02b159f305474f58c8c38027bb06e051 (diff)
downloadrust-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