1
Fork 0

Turn copy into moves during DSE.

This commit is contained in:
Camille GILLOT 2023-07-16 13:11:10 +00:00
parent b657dc555b
commit f5feb3e3ca
32 changed files with 129 additions and 31 deletions

View file

@ -33,7 +33,7 @@ pub fn iter_repeat_n_next(it: &mut std::iter::RepeatN<NotCopy>) -> Option<NotCop
// CHECK: [[EMPTY]]:
// CHECK-NOT: br
// CHECK: phi i16 [ %[[VAL]], %[[NOT_EMPTY]] ], [ undef, %start ]
// CHECK: phi i16 [ undef, %start ], [ %[[VAL]], %[[NOT_EMPTY]] ]
// CHECK-NOT: br
// CHECK: ret

View file

@ -1,4 +1,4 @@
// compile-flags: -C no-prepopulate-passes -Zmir-enable-passes=+DestinationPropagation,-CopyProp
// compile-flags: -C no-prepopulate-passes
#![crate_type = "lib"]