rust/compiler/rustc_codegen_ssa
bors addae0705c Auto merge of #138391 - scottmcm:SSA-discriminants, r=WaffleLapkin
Don't `alloca` just to look at a discriminant

Today we're making LLVM do a bunch of extra work when you match on trivial stuff like `Option<bool>` or `ControlFlow<u8>`.

This PR changes that so that simple types like `Option<u32>` or `Result<(), Box<Error>>` can stay as `OperandValue::ScalarPair` and we can still read the discriminant from them, rather than needing to write them into memory to have a `PlaceValue` just to get the discriminant out.

Fixes #137503
2025-03-14 00:42:31 +00:00
..
src Auto merge of #138391 - scottmcm:SSA-discriminants, r=WaffleLapkin 2025-03-14 00:42:31 +00:00
Cargo.toml Revert "Use workspace lints for crates in compiler/ #138084" 2025-03-10 18:12:47 +08:00
messages.ftl Make some invalid codegen attr errors structured/translatable 2025-03-07 23:26:48 +00:00
README.md

Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.