Skip to content

Commit fe5699d

Browse files
reviewers changes
1 parent e66f88c commit fe5699d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/codegen/issues/issue-112169.rs renamed to tests/codegen/issues/issue-112169-long-iterator-unroll.rs

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
//@ compile-flags: -O
1+
//@ compile-flags: -O -Z mir-opt-level=4
22
#![crate_type = "lib"]
33

44
// Test that simple iterator-based loops of length > 101 are fully optimized away.
55
// See <https://github.com/rust-lang/rust/issues/112169>
66

7-
// CHECK-LABEL: define{{.*}}i32 @issue_112169(){{.*}}{
7+
// CHECK-LABEL: issue_112169()
88
#[no_mangle]
99
pub fn issue_112169() -> i32 {
10-
// CHECK-NOT: icmp
11-
// CHECK-NOT: add
12-
// CHECK-NOT: br
13-
// CHECK: ret i32 102
14-
// CHECK-NOT: icmp
15-
// CHECK-NOT: add
16-
// CHECK-NOT: br
10+
// CHECK-NEXT: {{.*}}:
11+
// CHECK-NEXT: ret i32 102
1712
let mut s = 0;
1813

1914
for i in 0..102 {

0 commit comments

Comments
 (0)