Skip to content

Commit 8f97242

Browse files
committed
tests: relax expectations after llvm change 902ddda120a5
LLVM 22 is able to drop assumes that seem to not help further optimizations, which actually seems to dramatically _help_ further optimizations in some of our small test cases.
1 parent 4cd91ef commit 8f97242

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tests/codegen-llvm/vec_pop_push_noop.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
pub fn noop(v: &mut Vec<u8>) {
88
// CHECK-NOT: grow_one
99
// CHECK-NOT: call
10-
// CHECK: tail call void @llvm.assume
1110
// CHECK-NOT: grow_one
1211
// CHECK-NOT: call
1312
// CHECK: {{ret|[}]}}

tests/codegen-llvm/vecdeque_pop_push.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::collections::VecDeque;
88
// CHECK-LABEL: @noop_back(
99
pub fn noop_back(v: &mut VecDeque<u8>) {
1010
// CHECK-NOT: grow
11-
// CHECK: tail call void @llvm.assume
1211
// CHECK-NOT: grow
1312
// CHECK: ret
1413
if let Some(x) = v.pop_back() {

0 commit comments

Comments
 (0)