rust/tests/mir-opt/copy-prop
Tomasz Miąsko 6bd1a031ab Turn moves into copies after copy propagation
Previously copy propagation presumed that there is further unspecified
distinction between move operands and copy operands in assignments and
propagated moves from assignments into terminators. This is inconsistent
with current operational semantics.

Turn moves into copies after copy propagation to preserve existing behavior.

Fixes https://github.com/rust-lang/rust/issues/137936.
Fixes https://github.com/rust-lang/rust/issues/146423.
2025-11-20 19:23:10 +01:00
..
borrowed_local.borrow_in_loop.CopyProp.panic-abort.diff Do not unify borrowed locals in CopyProp. 2025-07-06 10:14:07 +00:00
borrowed_local.borrow_in_loop.CopyProp.panic-unwind.diff Do not unify borrowed locals in CopyProp. 2025-07-06 10:14:07 +00:00
borrowed_local.borrowed.CopyProp.panic-abort.diff Propagate from borrowed locals in CopyProp 2025-07-10 09:36:20 +02:00
borrowed_local.borrowed.CopyProp.panic-unwind.diff Propagate from borrowed locals in CopyProp 2025-07-10 09:36:20 +02:00
borrowed_local.compare_address.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
borrowed_local.compare_address.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
borrowed_local.non_freeze.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
borrowed_local.non_freeze.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
borrowed_local.rs Propagate from borrowed locals in CopyProp 2025-07-10 09:36:20 +02:00
branch.foo.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
branch.foo.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
branch.rs Add FileCheck to branch.rs 2025-10-26 11:57:35 +01:00
calls.multiple_edges.CopyProp.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
calls.nrvo.CopyProp.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
calls.rs Add FileCheck to calls.rs 2025-10-26 11:57:41 +01:00
copy_propagation_arg.arg_src.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.arg_src.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.bar.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.bar.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.baz.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.baz.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.foo.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.foo.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
copy_propagation_arg.rs Add FileCheck to copy_propagation_arg.rs 2025-10-26 11:57:46 +01:00
custom_move_arg.f.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
custom_move_arg.f.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
custom_move_arg.rs Add FileCheck to custom_move_arg.rs 2025-10-26 11:57:50 +01:00
cycle.main.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
cycle.main.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
cycle.rs Add FileCheck to cycle.rs 2025-10-26 11:57:54 +01:00
dead_stores_79191.f.CopyProp.after.panic-abort.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
dead_stores_79191.f.CopyProp.after.panic-unwind.mir Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
dead_stores_79191.rs Add FileCheck to dead_stores_79191.rs 2025-10-26 11:57:57 +01:00
issue_107511.main.CopyProp.panic-abort.diff Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung" 2025-01-27 23:42:47 +00:00
issue_107511.main.CopyProp.panic-unwind.diff Reapply "Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung" 2025-01-27 23:42:47 +00:00
issue_107511.rs Add FileCheck to issue_107511.rs 2025-10-26 11:58:06 +01:00
move_arg.rs Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
move_projection.f.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
move_projection.f.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
move_projection.rs Add FileCheck to move_projection.rs 2025-10-26 11:58:14 +01:00
mutate_through_pointer.f.CopyProp.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
mutate_through_pointer.rs Add FileCheck to mutate_through_pointer.rs 2025-10-26 11:58:17 +01:00
non_dominate.f.CopyProp.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
non_dominate.rs Add FileCheck to non_dominate.rs 2025-10-26 11:58:22 +01:00
partial_init.main.CopyProp.diff Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
partial_init.rs Add FileCheck to partial_init.rs 2025-10-26 11:58:26 +01:00
reborrow.demiraw.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
reborrow.demiraw.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
reborrow.miraw.CopyProp.panic-abort.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
reborrow.miraw.CopyProp.panic-unwind.diff Bless *all* the mir-opt tests 2024-08-18 16:07:33 -07:00
reborrow.remut.CopyProp.panic-abort.diff Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
reborrow.remut.CopyProp.panic-unwind.diff Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
reborrow.reraw.CopyProp.panic-abort.diff Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
reborrow.reraw.CopyProp.panic-unwind.diff Turn moves into copies after copy propagation 2025-11-20 19:23:10 +01:00
reborrow.rs Add FileCheck to reborrow.rs 2025-10-26 11:58:30 +01:00
write_to_borrowed.main.CopyProp.diff Propagate from borrowed locals in CopyProp 2025-07-10 09:36:20 +02:00
write_to_borrowed.rs Propagate from borrowed locals in CopyProp 2025-07-10 09:36:20 +02:00