mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 20:20:59 +03:00
c62239aeb3
Emit `trunc nuw` for unchecked shifts and `to_immediate_scalar` - For shifts this shrinks the IR by no longer needing an `assume` while still providing the UB information - Having this on the `i8`→`i1` truncations will hopefully help with some places that have to load `i8`s or pass those in LLVM structs without range information