rust/compiler/rustc_codegen_ssa/src/mir
bors bb95b7dcd6 Auto merge of #112307 - lcnr:operand-ref, r=compiler-errors
mir opt + codegen: handle subtyping

fixes #107205

the same issue was caused in multiple places:
- mir opts: both copy and destination propagation
- codegen: assigning operands to locals (which also propagates values)

I changed codegen to always update the type in the operands used for locals which should guard against any new occurrences of this bug going forward. I don't know how to make mir optimizations more resilient here. Hopefully the added tests will be enough to detect any trivially wrong optimizations going forward.
2023-06-28 00:41:37 +00:00
..
analyze.rs unique borrows are mutating uses 2023-05-29 17:15:48 +02:00
block.rs Auto merge of #112307 - lcnr:operand-ref, r=compiler-errors 2023-06-28 00:41:37 +00:00
constant.rs ADD - create and emit Bug support for Diagnostics 2022-12-27 20:59:22 -05:00
coverageinfo.rs Add SourceScope::inlined_instance 2022-07-08 09:19:07 +02:00
debuginfo.rs codegen: fix OperandRef subtype handling 2023-06-19 09:06:42 +02:00
intrinsic.rs Remove unchecked_add/sub/mul/shl/shr from CTFE/cg_ssa/cg_clif 2023-06-19 01:47:03 -07:00
locals.rs add FIXME's for a later refactoring 2023-06-19 09:16:26 +02:00
mod.rs codegen: fix OperandRef subtype handling 2023-06-19 09:06:42 +02:00
operand.rs Add a distinct OperandValue::ZeroSized variant for ZSTs 2023-05-31 19:10:28 -07:00
place.rs Remove attempt to optimize codegen for discriminants. 2023-04-14 16:26:11 +00:00
rvalue.rs Promote unchecked_add/sub/mul/shl/shr to mir::BinOp 2023-06-19 01:47:03 -07:00
statement.rs codegen: fix OperandRef subtype handling 2023-06-19 09:06:42 +02:00