Turn copy into moves during DSE.
This commit is contained in:
parent
b657dc555b
commit
f5feb3e3ca
32 changed files with 129 additions and 31 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// compile-flags: -C no-prepopulate-passes -Zmir-enable-passes=+DestinationPropagation,-CopyProp
|
||||
// compile-flags: -C no-prepopulate-passes
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue