Skip to content

Commit cffe20d

Browse files
committed
bless codegen test
1 parent 6090bb4 commit cffe20d

2 files changed

+20
-4
lines changed

tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-abort.diff

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,29 @@
2929
debug precision => _8;
3030
let _8: usize;
3131
scope 5 (inlined Formatter::<'_>::precision) {
32+
let mut _23: &std::fmt::FormattingOptions;
3233
}
3334
}
3435
}
3536
}
3637
scope 4 (inlined Formatter::<'_>::sign_plus) {
3738
let mut _20: u32;
3839
let mut _21: u32;
40+
let mut _22: &std::fmt::FormattingOptions;
3941
}
4042

4143
bb0: {
4244
StorageLive(_4);
45+
StorageLive(_22);
4346
StorageLive(_20);
4447
StorageLive(_21);
45-
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
48+
_22 = copy ((*_1).1: &std::fmt::FormattingOptions);
49+
_21 = copy ((*_22).0: u32);
4650
_20 = BitAnd(move _21, const 1_u32);
4751
StorageDead(_21);
4852
_4 = Ne(move _20, const 0_u32);
4953
StorageDead(_20);
54+
StorageDead(_22);
5055
StorageLive(_5);
5156
switchInt(copy _4) -> [0: bb2, otherwise: bb1];
5257
}
@@ -65,7 +70,10 @@
6570

6671
bb3: {
6772
StorageLive(_6);
68-
_6 = copy (((*_1).0: std::fmt::FormattingOptions).4: std::option::Option<usize>);
73+
StorageLive(_23);
74+
_23 = copy ((*_1).1: &std::fmt::FormattingOptions);
75+
_6 = copy ((*_23).4: std::option::Option<usize>);
76+
StorageDead(_23);
6977
_7 = discriminant(_6);
7078
switchInt(move _7) -> [1: bb4, 0: bb6, otherwise: bb9];
7179
}

tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,29 @@
2929
debug precision => _8;
3030
let _8: usize;
3131
scope 5 (inlined Formatter::<'_>::precision) {
32+
let mut _23: &std::fmt::FormattingOptions;
3233
}
3334
}
3435
}
3536
}
3637
scope 4 (inlined Formatter::<'_>::sign_plus) {
3738
let mut _20: u32;
3839
let mut _21: u32;
40+
let mut _22: &std::fmt::FormattingOptions;
3941
}
4042

4143
bb0: {
4244
StorageLive(_4);
45+
StorageLive(_22);
4346
StorageLive(_20);
4447
StorageLive(_21);
45-
_21 = copy (((*_1).0: std::fmt::FormattingOptions).0: u32);
48+
_22 = copy ((*_1).1: &std::fmt::FormattingOptions);
49+
_21 = copy ((*_22).0: u32);
4650
_20 = BitAnd(move _21, const 1_u32);
4751
StorageDead(_21);
4852
_4 = Ne(move _20, const 0_u32);
4953
StorageDead(_20);
54+
StorageDead(_22);
5055
StorageLive(_5);
5156
switchInt(copy _4) -> [0: bb2, otherwise: bb1];
5257
}
@@ -65,7 +70,10 @@
6570

6671
bb3: {
6772
StorageLive(_6);
68-
_6 = copy (((*_1).0: std::fmt::FormattingOptions).4: std::option::Option<usize>);
73+
StorageLive(_23);
74+
_23 = copy ((*_1).1: &std::fmt::FormattingOptions);
75+
_6 = copy ((*_23).4: std::option::Option<usize>);
76+
StorageDead(_23);
6977
_7 = discriminant(_6);
7078
switchInt(move _7) -> [1: bb4, 0: bb6, otherwise: bb9];
7179
}

0 commit comments

Comments
 (0)