Skip to content

Commit 0550a6f

Browse files
committed
Bump mir-opt-level from 2 to 3 in tests
1 parent 0f9fdba commit 0550a6f

39 files changed

+41
-41
lines changed

src/test/codegen/issue-59352.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Once the optimizer can do that, mir-opt/issues/issue-59352.rs will need to be updated and this
66
// test case should be removed as it will become redundant.
77

8-
// mir-opt-level=2 enables inlining and enables LLVM to optimize away the unreachable panic call.
9-
// compile-flags: -O -Z mir-opt-level=2
8+
// mir-opt-level=3 enables inlining and enables LLVM to optimize away the unreachable panic call.
9+
// compile-flags: -O -Z mir-opt-level=3
1010

1111
#![crate_type = "rlib"]
1212

src/test/codegen/naked-noinline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Checks that naked functions are never inlined.
2-
// compile-flags: -O -Zmir-opt-level=2
2+
// compile-flags: -O -Zmir-opt-level=3
33
// ignore-wasm32
44
#![crate_type = "lib"]
55
#![feature(asm)]

src/test/codegen/try_identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -C no-prepopulate-passes -O -Z mir-opt-level=2 -Zunsound-mir-opts
1+
// compile-flags: -C no-prepopulate-passes -O -Z mir-opt-level=3 -Zunsound-mir-opts
22

33
// Ensure that `x?` has no overhead on `Result<T, E>` due to identity `match`es in lowering.
44
// This requires inlining to trigger the MIR optimizations in `SimplifyArmIdentity`.

src/test/mir-opt/const_prop/issue-66971.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=2
1+
// compile-flags: -Z mir-opt-level=3
22

33
// Due to a bug in propagating scalar pairs the assertion below used to fail. In the expected
44
// outputs below, after ConstProp this is how _2 would look like with the bug:

src/test/mir-opt/const_prop/issue-67019.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=2
1+
// compile-flags: -Z mir-opt-level=3
22

33
// This used to ICE in const-prop
44

src/test/mir-opt/issues/issue-59352.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// removed.
88

99
// EMIT_MIR issue_59352.num_to_digit.PreCodegen.after.mir
10-
// compile-flags: -Z mir-opt-level=2 -Z span_free_formats
10+
// compile-flags: -Z mir-opt-level=3 -Z span_free_formats
1111

1212
pub fn num_to_digit(num: char) -> u32 {
1313
// CHECK-NOT: panic

src/test/mir-opt/simplify-arm-identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Checks that `SimplifyArmIdentity` is not applied if enums have incompatible layouts.
22
// Regression test for issue #66856.
33
//
4-
// compile-flags: -Zmir-opt-level=2
4+
// compile-flags: -Zmir-opt-level=3
55
// EMIT_MIR_FOR_EACH_BIT_WIDTH
66

77
enum Src {

src/test/mir-opt/simplify-arm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z mir-opt-level=2 -Zunsound-mir-opts
1+
// compile-flags: -Z mir-opt-level=3 -Zunsound-mir-opts
22
// EMIT_MIR simplify_arm.id.SimplifyArmIdentity.diff
33
// EMIT_MIR simplify_arm.id.SimplifyBranchSame.diff
44
// EMIT_MIR simplify_arm.id_result.SimplifyArmIdentity.diff

src/test/ui/const_prop/inline_spans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// build-fail
2-
// compile-flags: -Zmir-opt-level=2
2+
// compile-flags: -Zmir-opt-level=3
33

44
#![deny(warnings)]
55

src/test/ui/const_prop/inline_spans_lint_attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Must be build-pass, because check-pass will not run const prop and thus not emit the lint anyway.
22
// build-pass
3-
// compile-flags: -Zmir-opt-level=2
3+
// compile-flags: -Zmir-opt-level=3
44

55
#![deny(warnings)]
66

0 commit comments

Comments
 (0)