Skip to content

Commit e300abb

Browse files
committed
Remove Nop in simplify_locals.
It's cheap and does not change anything.
1 parent 028b474 commit e300abb

File tree

36 files changed

+1
-54
lines changed

36 files changed

+1
-54
lines changed

compiler/rustc_mir_transform/src/simplify.rs

+1
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ fn remove_unused_definitions(used_locals: &mut UsedLocals, body: &mut Body<'_>)
569569

570570
StatementKind::SetDiscriminant { ref place, .. }
571571
| StatementKind::Deinit(ref place) => used_locals.is_used(place.local),
572+
StatementKind::Nop => false,
572573
_ => true,
573574
};
574575

src/test/mir-opt/const_debuginfo.main.ConstDebugInfo.diff

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
_11 = const 64_u32; // scope 8 at $DIR/const_debuginfo.rs:+13:13: +13:22
109109
StorageDead(_13); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
110110
StorageDead(_12); // scope 8 at $DIR/const_debuginfo.rs:+13:21: +13:22
111-
nop; // scope 0 at $DIR/const_debuginfo.rs:+0:11: +14:2
112111
StorageDead(_11); // scope 8 at $DIR/const_debuginfo.rs:+14:1: +14:2
113112
StorageDead(_17); // scope 7 at $DIR/const_debuginfo.rs:+14:1: +14:2
114113
StorageDead(_18); // scope 7 at $DIR/const_debuginfo.rs:+14:1: +14:2

src/test/mir-opt/const_prop/bad_op_mod_by_zero.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
- _2 = Rem(const 1_i32, move _3); // scope 1 at $DIR/bad_op_mod_by_zero.rs:+2:14: +2:19
4646
+ _2 = Rem(const 1_i32, const 0_i32); // scope 1 at $DIR/bad_op_mod_by_zero.rs:+2:14: +2:19
4747
StorageDead(_3); // scope 1 at $DIR/bad_op_mod_by_zero.rs:+2:18: +2:19
48-
nop; // scope 0 at $DIR/bad_op_mod_by_zero.rs:+0:11: +3:2
4948
StorageDead(_2); // scope 1 at $DIR/bad_op_mod_by_zero.rs:+3:1: +3:2
5049
StorageDead(_1); // scope 0 at $DIR/bad_op_mod_by_zero.rs:+3:1: +3:2
5150
return; // scope 0 at $DIR/bad_op_mod_by_zero.rs:+3:2: +3:2

src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.32bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
bb1: {
4747
_4 = (*_1)[_5]; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+3:18: +3:25
4848
StorageDead(_5); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+3:25: +3:26
49-
nop; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+2:5: +4:6
5049
StorageDead(_4); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+4:5: +4:6
5150
StorageDead(_1); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+5:1: +5:2
5251
return; // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+5:2: +5:2

src/test/mir-opt/const_prop/bad_op_unsafe_oob_for_slices.main.ConstProp.64bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
bb1: {
4747
_4 = (*_1)[_5]; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+3:18: +3:25
4848
StorageDead(_5); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+3:25: +3:26
49-
nop; // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+2:5: +4:6
5049
StorageDead(_4); // scope 2 at $DIR/bad_op_unsafe_oob_for_slices.rs:+4:5: +4:6
5150
StorageDead(_1); // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+5:1: +5:2
5251
return; // scope 0 at $DIR/bad_op_unsafe_oob_for_slices.rs:+5:2: +5:2

src/test/mir-opt/const_prop/control_flow_simplification.hello.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
}
2626

2727
bb2: {
28-
nop; // scope 0 at $DIR/control_flow_simplification.rs:+3:6: +3:6
2928
StorageDead(_1); // scope 0 at $DIR/control_flow_simplification.rs:+3:5: +3:6
3029
return; // scope 0 at $DIR/control_flow_simplification.rs:+4:2: +4:2
3130
}

src/test/mir-opt/const_prop/invalid_constant.main.ConstProp.diff

-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@
5555
StorageDead(_4); // scope 1 at $DIR/invalid_constant.rs:+13:59: +13:60
5656
StorageDead(_5); // scope 1 at $DIR/invalid_constant.rs:+13:60: +13:61
5757
StorageLive(_6); // scope 3 at $DIR/invalid_constant.rs:+20:9: +20:31
58-
nop; // scope 6 at $DIR/invalid_constant.rs:+20:44: +20:71
59-
nop; // scope 3 at $DIR/invalid_constant.rs:+20:34: +20:74
6058
StorageLive(_7); // scope 5 at $DIR/invalid_constant.rs:+24:9: +24:22
61-
nop; // scope 0 at $DIR/invalid_constant.rs:+0:11: +27:2
6259
StorageDead(_7); // scope 5 at $DIR/invalid_constant.rs:+27:1: +27:2
6360
StorageDead(_6); // scope 3 at $DIR/invalid_constant.rs:+27:1: +27:2
6461
StorageDead(_3); // scope 1 at $DIR/invalid_constant.rs:+27:1: +27:2

src/test/mir-opt/const_prop/issue_66971.main.ConstProp.diff

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
bb0: {
1010
StorageLive(_1); // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
1111
StorageLive(_2); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
12-
nop; // scope 0 at $DIR/issue_66971.rs:+1:13: +1:15
1312
Deinit(_2); // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
14-
nop; // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
1513
(_2.1: u8) = const 0_u8; // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
1614
(_2.2: u8) = const 0_u8; // scope 0 at $DIR/issue_66971.rs:+1:12: +1:22
1715
_1 = encode(move _2) -> bb1; // scope 0 at $DIR/issue_66971.rs:+1:5: +1:23
@@ -23,7 +21,6 @@
2321
bb1: {
2422
StorageDead(_2); // scope 0 at $DIR/issue_66971.rs:+1:22: +1:23
2523
StorageDead(_1); // scope 0 at $DIR/issue_66971.rs:+1:23: +1:24
26-
nop; // scope 0 at $DIR/issue_66971.rs:+0:11: +2:2
2724
return; // scope 0 at $DIR/issue_66971.rs:+2:2: +2:2
2825
}
2926
}

src/test/mir-opt/const_prop/issue_67019.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
bb1: {
2828
StorageDead(_2); // scope 0 at $DIR/issue_67019.rs:+1:19: +1:20
2929
StorageDead(_1); // scope 0 at $DIR/issue_67019.rs:+1:20: +1:21
30-
nop; // scope 0 at $DIR/issue_67019.rs:+0:11: +2:2
3130
return; // scope 0 at $DIR/issue_67019.rs:+2:2: +2:2
3231
}
3332
}

src/test/mir-opt/const_prop/large_array_index.main.ConstProp.32bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
_1 = _2[_3]; // scope 0 at $DIR/large_array_index.rs:+2:17: +2:32
3030
StorageDead(_3); // scope 0 at $DIR/large_array_index.rs:+2:32: +2:33
3131
StorageDead(_2); // scope 0 at $DIR/large_array_index.rs:+2:32: +2:33
32-
nop; // scope 0 at $DIR/large_array_index.rs:+0:11: +3:2
3332
StorageDead(_1); // scope 0 at $DIR/large_array_index.rs:+3:1: +3:2
3433
return; // scope 0 at $DIR/large_array_index.rs:+3:2: +3:2
3534
}

src/test/mir-opt/const_prop/large_array_index.main.ConstProp.64bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
_1 = _2[_3]; // scope 0 at $DIR/large_array_index.rs:+2:17: +2:32
3030
StorageDead(_3); // scope 0 at $DIR/large_array_index.rs:+2:32: +2:33
3131
StorageDead(_2); // scope 0 at $DIR/large_array_index.rs:+2:32: +2:33
32-
nop; // scope 0 at $DIR/large_array_index.rs:+0:11: +3:2
3332
StorageDead(_1); // scope 0 at $DIR/large_array_index.rs:+3:1: +3:2
3433
return; // scope 0 at $DIR/large_array_index.rs:+3:2: +3:2
3534
}

src/test/mir-opt/const_prop/mutable_variable.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
StorageLive(_2); // scope 1 at $DIR/mutable_variable.rs:+3:9: +3:10
2020
- _2 = _1; // scope 1 at $DIR/mutable_variable.rs:+3:13: +3:14
2121
+ _2 = const 99_i32; // scope 1 at $DIR/mutable_variable.rs:+3:13: +3:14
22-
nop; // scope 0 at $DIR/mutable_variable.rs:+0:11: +4:2
2322
StorageDead(_2); // scope 1 at $DIR/mutable_variable.rs:+4:1: +4:2
2423
StorageDead(_1); // scope 0 at $DIR/mutable_variable.rs:+4:1: +4:2
2524
return; // scope 0 at $DIR/mutable_variable.rs:+4:2: +4:2

src/test/mir-opt/const_prop/mutable_variable_aggregate.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:9: +3:10
2222
- _2 = _1; // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:13: +3:14
2323
+ _2 = const (42_i32, 99_i32); // scope 1 at $DIR/mutable_variable_aggregate.rs:+3:13: +3:14
24-
nop; // scope 0 at $DIR/mutable_variable_aggregate.rs:+0:11: +4:2
2524
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate.rs:+4:1: +4:2
2625
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate.rs:+4:1: +4:2
2726
return; // scope 0 at $DIR/mutable_variable_aggregate.rs:+4:2: +4:2

src/test/mir-opt/const_prop/mutable_variable_aggregate_mut_ref.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
((*_2).1: i32) = const 99_i32; // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+3:5: +3:13
2727
StorageLive(_3); // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+4:9: +4:10
2828
_3 = _1; // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+4:13: +4:14
29-
nop; // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+0:11: +5:2
3029
StorageDead(_3); // scope 2 at $DIR/mutable_variable_aggregate_mut_ref.rs:+5:1: +5:2
3130
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate_mut_ref.rs:+5:1: +5:2
3231
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate_mut_ref.rs:+5:1: +5:2

src/test/mir-opt/const_prop/mutable_variable_aggregate_partial_read.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
StorageLive(_2); // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:+4:9: +4:10
2727
- _2 = (_1.1: i32); // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:+4:13: +4:16
2828
+ _2 = const 99_i32; // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:+4:13: +4:16
29-
nop; // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:+0:11: +5:2
3029
StorageDead(_2); // scope 1 at $DIR/mutable_variable_aggregate_partial_read.rs:+5:1: +5:2
3130
StorageDead(_1); // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:+5:1: +5:2
3231
return; // scope 0 at $DIR/mutable_variable_aggregate_partial_read.rs:+5:2: +5:2

src/test/mir-opt/const_prop/mutable_variable_no_prop.main.ConstProp.diff

-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@
2929
_1 = move _2; // scope 2 at $DIR/mutable_variable_no_prop.rs:+3:9: +3:19
3030
StorageDead(_2); // scope 2 at $DIR/mutable_variable_no_prop.rs:+3:18: +3:19
3131
StorageDead(_3); // scope 2 at $DIR/mutable_variable_no_prop.rs:+3:19: +3:20
32-
nop; // scope 2 at $DIR/mutable_variable_no_prop.rs:+2:5: +4:6
3332
StorageLive(_4); // scope 1 at $DIR/mutable_variable_no_prop.rs:+5:9: +5:10
3433
_4 = _1; // scope 1 at $DIR/mutable_variable_no_prop.rs:+5:13: +5:14
35-
nop; // scope 0 at $DIR/mutable_variable_no_prop.rs:+0:11: +6:2
3634
StorageDead(_4); // scope 1 at $DIR/mutable_variable_no_prop.rs:+6:1: +6:2
3735
StorageDead(_1); // scope 0 at $DIR/mutable_variable_no_prop.rs:+6:1: +6:2
3836
return; // scope 0 at $DIR/mutable_variable_no_prop.rs:+6:2: +6:2

src/test/mir-opt/const_prop/mutable_variable_unprop_assign.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
StorageLive(_4); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:9: +5:10
4747
- _4 = _5; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
4848
+ _4 = const 1_i32; // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+5:13: +5:16
49-
nop; // scope 0 at $DIR/mutable_variable_unprop_assign.rs:+0:11: +6:2
5049
StorageDead(_4); // scope 3 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
5150
StorageDead(_3); // scope 2 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2
5251
StorageDead(_5); // scope 1 at $DIR/mutable_variable_unprop_assign.rs:+6:1: +6:2

src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.32bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
- _8 = _9; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
5858
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
5959
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
60-
nop; // scope 0 at $DIR/optimizes_into_variable.rs:+0:11: +4:2
6160
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
6261
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
6362
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:+4:1: +4:2

src/test/mir-opt/const_prop/optimizes_into_variable.main.ConstProp.64bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
- _8 = _9; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
5858
+ _8 = const 42_u32; // scope 2 at $DIR/optimizes_into_variable.rs:+3:13: +3:38
5959
StorageDead(_9); // scope 2 at $DIR/optimizes_into_variable.rs:+3:38: +3:39
60-
nop; // scope 0 at $DIR/optimizes_into_variable.rs:+0:11: +4:2
6160
StorageDead(_8); // scope 2 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
6261
StorageDead(_3); // scope 1 at $DIR/optimizes_into_variable.rs:+4:1: +4:2
6362
StorageDead(_1); // scope 0 at $DIR/optimizes_into_variable.rs:+4:1: +4:2

src/test/mir-opt/const_prop/read_immutable_static.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
StorageDead(_2); // scope 0 at $DIR/read_immutable_static.rs:+1:21: +1:22
3737
StorageDead(_5); // scope 0 at $DIR/read_immutable_static.rs:+1:22: +1:23
3838
StorageDead(_3); // scope 0 at $DIR/read_immutable_static.rs:+1:22: +1:23
39-
nop; // scope 0 at $DIR/read_immutable_static.rs:+0:11: +2:2
4039
StorageDead(_1); // scope 0 at $DIR/read_immutable_static.rs:+2:1: +2:2
4140
return; // scope 0 at $DIR/read_immutable_static.rs:+2:2: +2:2
4241
}

src/test/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
_1 = move _2 as usize (PointerExposeAddress); // scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:26
1919
StorageDead(_2); // scope 0 at $DIR/reify_fn_ptr.rs:+1:25: +1:26
2020
StorageDead(_1); // scope 0 at $DIR/reify_fn_ptr.rs:+1:40: +1:41
21-
nop; // scope 0 at $DIR/reify_fn_ptr.rs:+0:11: +2:2
2221
return; // scope 0 at $DIR/reify_fn_ptr.rs:+2:2: +2:2
2322
}
2423
}

src/test/mir-opt/const_prop/repeat.main.ConstProp.32bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
StorageDead(_2); // scope 0 at $DIR/repeat.rs:+1:31: +1:32
3636
StorageDead(_4); // scope 0 at $DIR/repeat.rs:+1:32: +1:33
3737
StorageDead(_3); // scope 0 at $DIR/repeat.rs:+1:32: +1:33
38-
nop; // scope 0 at $DIR/repeat.rs:+0:11: +2:2
3938
StorageDead(_1); // scope 0 at $DIR/repeat.rs:+2:1: +2:2
4039
return; // scope 0 at $DIR/repeat.rs:+2:2: +2:2
4140
}

src/test/mir-opt/const_prop/repeat.main.ConstProp.64bit.diff

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
StorageDead(_2); // scope 0 at $DIR/repeat.rs:+1:31: +1:32
3636
StorageDead(_4); // scope 0 at $DIR/repeat.rs:+1:32: +1:33
3737
StorageDead(_3); // scope 0 at $DIR/repeat.rs:+1:32: +1:33
38-
nop; // scope 0 at $DIR/repeat.rs:+0:11: +2:2
3938
StorageDead(_1); // scope 0 at $DIR/repeat.rs:+2:1: +2:2
4039
return; // scope 0 at $DIR/repeat.rs:+2:2: +2:2
4140
}

src/test/mir-opt/const_prop/scalar_literal_propagation.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
bb1: {
2828
StorageDead(_3); // scope 1 at $DIR/scalar_literal_propagation.rs:+2:14: +2:15
2929
StorageDead(_2); // scope 1 at $DIR/scalar_literal_propagation.rs:+2:15: +2:16
30-
nop; // scope 0 at $DIR/scalar_literal_propagation.rs:+0:11: +3:2
3130
StorageDead(_1); // scope 0 at $DIR/scalar_literal_propagation.rs:+3:1: +3:2
3231
return; // scope 0 at $DIR/scalar_literal_propagation.rs:+3:2: +3:2
3332
}

src/test/mir-opt/const_prop/tuple_literal_propagation.main.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
bb1: {
2929
StorageDead(_3); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:14: +3:15
3030
StorageDead(_2); // scope 1 at $DIR/tuple_literal_propagation.rs:+3:15: +3:16
31-
nop; // scope 0 at $DIR/tuple_literal_propagation.rs:+0:11: +4:2
3231
StorageDead(_1); // scope 0 at $DIR/tuple_literal_propagation.rs:+4:1: +4:2
3332
return; // scope 0 at $DIR/tuple_literal_propagation.rs:+4:2: +4:2
3433
}

src/test/mir-opt/const_prop_miscompile.bar.ConstProp.diff

-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@
2424
_2 = &raw mut (_1.0: i32); // scope 2 at $DIR/const_prop_miscompile.rs:+3:10: +3:22
2525
(*_2) = const 5_i32; // scope 2 at $DIR/const_prop_miscompile.rs:+3:9: +3:26
2626
StorageDead(_2); // scope 2 at $DIR/const_prop_miscompile.rs:+3:26: +3:27
27-
nop; // scope 2 at $DIR/const_prop_miscompile.rs:+2:5: +4:6
2827
StorageLive(_3); // scope 1 at $DIR/const_prop_miscompile.rs:+5:9: +5:10
2928
StorageLive(_4); // scope 1 at $DIR/const_prop_miscompile.rs:+5:13: +5:20
3029
_4 = (_1.0: i32); // scope 1 at $DIR/const_prop_miscompile.rs:+5:15: +5:18
3130
_3 = Eq(move _4, const 5_i32); // scope 1 at $DIR/const_prop_miscompile.rs:+5:13: +5:25
3231
StorageDead(_4); // scope 1 at $DIR/const_prop_miscompile.rs:+5:24: +5:25
33-
nop; // scope 0 at $DIR/const_prop_miscompile.rs:+0:10: +6:2
3432
StorageDead(_3); // scope 1 at $DIR/const_prop_miscompile.rs:+6:1: +6:2
3533
StorageDead(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+6:1: +6:2
3634
return; // scope 0 at $DIR/const_prop_miscompile.rs:+6:2: +6:2

src/test/mir-opt/const_prop_miscompile.foo.ConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
_4 = (_1.0: i32); // scope 1 at $DIR/const_prop_miscompile.rs:+3:15: +3:18
2828
_3 = Eq(move _4, const 5_i32); // scope 1 at $DIR/const_prop_miscompile.rs:+3:13: +3:25
2929
StorageDead(_4); // scope 1 at $DIR/const_prop_miscompile.rs:+3:24: +3:25
30-
nop; // scope 0 at $DIR/const_prop_miscompile.rs:+0:10: +4:2
3130
StorageDead(_3); // scope 1 at $DIR/const_prop_miscompile.rs:+4:1: +4:2
3231
StorageDead(_1); // scope 0 at $DIR/const_prop_miscompile.rs:+4:1: +4:2
3332
return; // scope 0 at $DIR/const_prop_miscompile.rs:+4:2: +4:2

src/test/mir-opt/dataflow-const-prop/inherit_overflow.main.DataflowConstProp.diff

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
StorageDead(_3); // scope 2 at $SRC_DIR/core/src/ops/arith.rs:LL:COL
3434
StorageDead(_2); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47
3535
StorageDead(_1); // scope 0 at $DIR/inherit_overflow.rs:+3:13: +3:47
36-
nop; // scope 0 at $DIR/inherit_overflow.rs:+0:11: +4:2
3736
return; // scope 0 at $DIR/inherit_overflow.rs:+4:2: +4:2
3837
}
3938
}

0 commit comments

Comments
 (0)