Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions tests/mir-opt/const_prop/invalid_constant.main.GVN.diff
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,11 @@
StorageDead(_1);
return;
}
+ }
}
+
+ ALLOC0 (size: 4, align: 4) {
+ 00 00 00 00 │ ....
+ }
+ ALLOC0 (size: 4, align: 4) { .. }
+
+ ALLOC1 (size: 4, align: 4) {
+ 04 00 00 00 │ ....
+ }
+ ALLOC1 (size: 4, align: 4) { .. }
+
+ ALLOC2 (size: 4, align: 4) {
+ 01 00 11 00 │ ....
}
+ ALLOC2 (size: 4, align: 4) { .. }

2 changes: 1 addition & 1 deletion tests/mir-opt/const_prop/invalid_constant.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// skip-filecheck
//@ test-mir-pass: GVN
//@ compile-flags: -Zmir-enable-passes=+RemoveZsts
//@ compile-flags: -Zmir-enable-passes=+RemoveZsts -Zdump-mir-exclude-alloc-bytes
// Verify that we can pretty print invalid constants.

#![feature(adt_const_params, unsized_const_params)]
Expand Down
6 changes: 2 additions & 4 deletions tests/mir-opt/const_prop/union.main.GVN.diff
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
StorageDead(_1);
return;
}
+ }
+
+ ALLOC0 (size: 4, align: 4) {
+ 01 00 00 00 │ ....
}
+
+ ALLOC0 (size: 4, align: 4) { .. }

2 changes: 1 addition & 1 deletion tests/mir-opt/const_prop/union.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Tests that we can propagate into places that are projections into unions
//@ test-mir-pass: GVN
//@ compile-flags: -Zinline-mir
//@ compile-flags: -Zinline-mir -Zdump-mir-exclude-alloc-bytes

fn val() -> u32 {
1
Expand Down
6 changes: 2 additions & 4 deletions tests/mir-opt/gvn_loop.loop_deref_mut.GVN.diff
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@
StorageDead(_11);
goto -> bb4;
}
+ }
+
+ ALLOC0 (size: 8, align: 4) {
+ 01 00 00 00 __ __ __ __ │ ....░░░░
}
+
+ ALLOC0 (size: 8, align: 4) { .. }

1 change: 1 addition & 0 deletions tests/mir-opt/gvn_loop.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@ test-mir-pass: GVN
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes

#![crate_type = "lib"]
#![feature(core_intrinsics, rustc_attrs)]
Expand Down
Loading