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.
This commit is contained in:
Augie Fackler
2025-09-18 14:23:43 -04:00
parent 4cd91ef822
commit e32b975e84
3 changed files with 13 additions and 4 deletions
@@ -1,4 +1,7 @@
//@ compile-flags: -Copt-level=3
//@ revisions: new old
//@ [old] ignore-llvm-version: 22 - 99
//@ [new] min-llvm-version: 22
#![crate_type = "lib"]
@@ -22,8 +25,8 @@ pub unsafe fn update(s: *mut State) {
// CHECK-NOT: memcpy
// CHECK-NOT: 75{{3|4}}
// CHECK: %[[TAG:.+]] = load i8, ptr %s, align 1
// CHECK-NEXT: trunc nuw i8 %[[TAG]] to i1
// old: %[[TAG:.+]] = load i8, ptr %s, align 1
// old-NEXT: trunc nuw i8 %[[TAG]] to i1
// CHECK-NOT: load
// CHECK-NOT: store
+4 -1
View File
@@ -1,4 +1,7 @@
//@ compile-flags: -Copt-level=3
//@ revisions: new old
//@ [old] ignore-llvm-version: 22 - 99
//@ [new] min-llvm-version: 22
#![crate_type = "lib"]
@@ -7,7 +10,7 @@
pub fn noop(v: &mut Vec<u8>) {
// CHECK-NOT: grow_one
// CHECK-NOT: call
// CHECK: tail call void @llvm.assume
// old: tail call void @llvm.assume
// CHECK-NOT: grow_one
// CHECK-NOT: call
// CHECK: {{ret|[}]}}
+4 -1
View File
@@ -1,4 +1,7 @@
//@ compile-flags: -Copt-level=3
//@ revisions: new old
//@ [old] ignore-llvm-version: 22 - 99
//@ [new] min-llvm-version: 22
#![crate_type = "lib"]
@@ -8,7 +11,7 @@
// CHECK-LABEL: @noop_back(
pub fn noop_back(v: &mut VecDeque<u8>) {
// CHECK-NOT: grow
// CHECK: tail call void @llvm.assume
// old: tail call void @llvm.assume
// CHECK-NOT: grow
// CHECK: ret
if let Some(x) = v.pop_back() {