rust/compiler/rustc_codegen_ssa
bors 283a0746a2 Auto merge of #143860 - scottmcm:transmute-always-rvalue, r=WaffleLapkin
Let `codegen_transmute_operand` just handle everything

When combined with rust-lang/rust#143720, this means `rvalue_creates_operand` can just return `true` for *every* `Rvalue`.  (A future PR could consider removing it, though just letting it optimize out is fine for now.)

It's nicer anyway, IMHO, because it avoids needing the layout checks to be consistent in the two places, and thus is an overall reduction in code.  Plus it's a more helpful building block when used in other places this way.

(TBH, it probably would have been better to have it this way the whole time, but I clearly didn't understand `rvalue_creates_operand` when I originally wrote rust-lang/rust#109843.)
2025-07-26 22:45:18 +00:00
..
src Auto merge of #143860 - scottmcm:transmute-always-rvalue, r=WaffleLapkin 2025-07-26 22:45:18 +00:00
Cargo.toml CodeGen: rework Aggregate implemention for rvalue_creates_operand cases 2025-06-17 18:59:22 -07:00
messages.ftl Move LTO symbol export calculation from backends to cg_ssa 2025-07-21 07:58:44 +00:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00

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