Skip to content

Commit

Permalink
Acknowledge comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CastilloDel committed Jun 26, 2024
1 parent f0f867e commit 2d5a483
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mir-opt/dest-prop/copy_propagation_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn bar(mut x: u8) {
fn baz(mut x: i32) -> i32 {
// CHECK-LABEL: fn baz(
// CHECK: debug x => [[x:_.*]];
// CHECK-NOT: [[x]] = {{_.*}}
// CHECK-NOT: [[x]] =
// self-assignment to a function argument should be eliminated
x = x;
x
Expand Down
3 changes: 3 additions & 0 deletions tests/mir-opt/dest-prop/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
fn nrvo(init: fn(&mut [u8; 1024])) -> [u8; 1024] {
// CHECK-LABEL: fn nrvo(
// CHECK: debug init => [[init:_.*]];
// CHECK: debug buf => [[buf:_.*]];
// CHECK: [[buf]] = [const 0_u8; 1024];
// CHECK-NOT: {{_.*}} = [[init]];
// CHECK: move [[init]](move {{_.*}})
// CHECK: {{_.*}} = [[buf]]
let mut buf = [0; 1024];
init(&mut buf);
buf
Expand Down
2 changes: 2 additions & 0 deletions tests/mir-opt/dest-prop/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fn val() -> u32 {

// EMIT_MIR union.main.DestinationPropagation.diff
fn main() {
// CHECK-LABEL: fn args(
// CHECK: {{_.*}} = Un { us: const 1_u32 };
union Un {
us: u32,
}
Expand Down

0 comments on commit 2d5a483

Please sign in to comment.