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

+1-1
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

+1
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

+1-1
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

+1
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

+1
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

+1
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

+1-1
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

+1-1
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

+1
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

+1-1
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

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

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

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

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: DataflowConstProp
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23
// EMIT_MIR_FOR_EACH_BIT_WIDTH
34

45
#![feature(custom_mir, core_intrinsics, rustc_attrs)]

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

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: DataflowConstProp
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23
// EMIT_MIR_FOR_EACH_BIT_WIDTH
34

45
#[derive(Copy, Clone)]

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

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@ test-mir-pass: DataflowConstProp
2+
//@ compile-flags: -Zdump-mir-exclude-alloc-bytes
23
// EMIT_MIR_FOR_EACH_BIT_WIDTH
34

45
// EMIT_MIR tuple.main.DataflowConstProp.diff

tests/mir-opt/enum_opt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// skip-filecheck
22
//@ test-mir-pass: EnumSizeOpt
33
// EMIT_MIR_FOR_EACH_BIT_WIDTH
4-
//@ compile-flags: -Zunsound-mir-opts
4+
//@ compile-flags: -Zunsound-mir-opts -Zdump-mir-exclude-alloc-bytes
55

66
#![feature(arbitrary_enum_discriminant, repr128)]
77

tests/mir-opt/gvn.rs

+1
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
//@ only-64bit
45

tests/mir-opt/pre-codegen/optimizes_into_variable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// skip-filecheck
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
struct Point {
66
x: u32,

0 commit comments

Comments
 (0)