about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-07 10:02:26 +0100
committerGitHub <noreply@github.com>2025-03-07 10:02:26 +0100
commit9e16082e63c332f160adfeece664d5623abbcfe7 (patch)
treed2d2c4bf482b571e215bb18a90c64ac70d55276f /compiler/rustc_codegen_llvm/src
parenta98df54bdc3fcedfd89bf1959960b97a5432cb5b (diff)
parenteae5ed609d8afe6c8cd7a231a1bbbb12aba331dd (diff)
downloadrust-9e16082e63c332f160adfeece664d5623abbcfe7.tar.gz
rust-9e16082e63c332f160adfeece664d5623abbcfe7.zip
Rollup merge of #137904 - scottmcm:ordering-is, r=workingjubilee
Improve the generic MIR in the default `PartialOrd::le` and friends

It looks like I regressed this accidentally in #137197 due to #137901

So this PR does two things:
1. Tweaks the way we're calling `is_some_and` so that it optimizes in the generic MIR (rather than needing to optimize it in every monomorphization) -- the first commit adds a MIR test, so you can see the difference in the second commit.
2. Updates the implementations of `is_le` and friends to be slightly simpler, and parallel how clang does them.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions