Skip to content

Commit 1a05cb2

Browse files
committed
Use -Zdump-mir-exclude-alloc-bytes in some mir-opt tests
1 parent 31851d4 commit 1a05cb2

17 files changed

+17
-8
lines changed

tests/mir-opt/const_debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ test-mir-pass: SingleUseConsts
2-
//@ compile-flags: -C overflow-checks=no -Zmir-enable-passes=+GVN
2+
//@ compile-flags: -C overflow-checks=no -Zmir-enable-passes=+GVN -Zdump-mir-exclude-alloc-bytes
33

44
#![allow(unused)]
55

tests/mir-opt/const_prop/address_of_pair.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: GVN
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23

34
// EMIT_MIR address_of_pair.fn0.GVN.diff
45
pub fn fn0() -> bool {

tests/mir-opt/const_prop/checked_add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
//@ test-mir-pass: GVN
3-
//@ compile-flags: -C overflow-checks=on
3+
//@ compile-flags: -C overflow-checks=on -Zdump-mir-exclude-alloc-bytes
44

55
// EMIT_MIR checked_add.main.GVN.diff
66
fn main() {

tests/mir-opt/const_prop/mutable_variable_aggregate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: GVN
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23

34
// EMIT_MIR mutable_variable_aggregate.main.GVN.diff
45
fn main() {

tests/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: GVN
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23

34
// EMIT_MIR mutable_variable_aggregate_mut_ref.main.GVN.diff
45
fn main() {

tests/mir-opt/const_prop/mutable_variable_unprop_assign.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
22
//@ test-mir-pass: GVN
3+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
34

45
// EMIT_MIR mutable_variable_unprop_assign.main.GVN.diff
56
fn main() {

tests/mir-opt/const_prop/return_place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ test-mir-pass: GVN
22
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3-
//@ compile-flags: -C overflow-checks=on
3+
//@ compile-flags: -C overflow-checks=on -Zdump-mir-exclude-alloc-bytes
44

55
// EMIT_MIR return_place.add.GVN.diff
66
// EMIT_MIR return_place.add.PreCodegen.before.mir

tests/mir-opt/const_prop/slice_len.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ test-mir-pass: GVN
2-
//@ compile-flags: -Zmir-enable-passes=+InstSimplify
2+
//@ compile-flags: -Zmir-enable-passes=+InstSimplify -Zdump-mir-exclude-alloc-bytes
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44
// EMIT_MIR_FOR_EACH_BIT_WIDTH
55

tests/mir-opt/const_prop/tuple_literal_propagation.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: GVN
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
34
// EMIT_MIR tuple_literal_propagation.main.GVN.diff
45

tests/mir-opt/dataflow-const-prop/checked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ test-mir-pass: DataflowConstProp
2-
//@ compile-flags: -Coverflow-checks=on
2+
//@ compile-flags: -Coverflow-checks=on -Zdump-mir-exclude-alloc-bytes
33
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
44

55
// EMIT_MIR checked.main.DataflowConstProp.diff

0 commit comments

Comments
 (0)