mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
f91de350ee
Simplify `intrinsic::raw_eq` in MIR when possible After https://github.com/rust-lang/rust/pull/150945 things can inline enough to have this end up specific enough that we can remove it, for example changing `raw_eq::<[u8; 4]>(a, b)` → `Transmute(a) == Transmute(b)`. The LLVM backend can also do this (and in more cases too) but we might as well do it in MIR instead when we can so it applies to all backends and other MIR optimizations can apply afterwards.