rust/tests/codegen-llvm/issues
Matthias Krüger c772af78e9
Rollup merge of #146732 - durin42:llvm-22-less-assumes, r=nikic
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.

I'm a little unclear how to fix the last failure, in `tests/codegen-llvm/issues/issue-122600-ptr-discriminant-update.rs`:

```
-; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: write) uwtable
+; Function Attrs: mustprogress nofree norecurse nosync nounwind nonlazybind willreturn memory(argmem: readwrite, inaccessiblemem: write) uwtable
 define void ``@update(ptr`` noundef captures(none) %s) unnamed_addr #0 {
 start:
-  %_3.sroa.0.0.copyload = load i8, ptr %s, align 1
-  %0 = trunc nuw i8 %_3.sroa.0.0.copyload to i1
-  %1 = xor i1 %0, true
-  tail call void ``@llvm.assume(i1`` %1)
   store i8 1, ptr %s, align 1
   ret void
 }
```

I'm just not conversant enough in LLVM IR to follow the changes here.

``@rustbot`` label llvm-main
r? nikic
2025-09-27 21:25:57 +02:00
..
and-masked-comparison-131162.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
assert-for-loop-bounds-check-71997.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
cows-dont-have-branches-117763.rs regression test for https://github.com/rust-lang/rust/issues/117763 2025-09-21 19:54:43 +02:00
elided-division-by-zero-check-74917.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
for-loop-inner-assert-91109.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
issue-13018.rs
issue-15953.rs
issue-27130.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-32031.rs
issue-32364.rs
issue-34634.rs
issue-34947-pow-i32.rs
issue-36010-some-box-is_some.rs
issue-37945.rs
issue-45222.rs
issue-45466.rs
issue-45964-bounds-check-slice-pos.rs
issue-47278.rs
issue-47442.rs
issue-56267-2.rs
issue-56267.rs
issue-56927.rs
issue-58881.rs
issue-59352.rs
issue-64219-fn-ptr-call-returning-never-is-noreturn.rs
issue-68667-unwrap-combinators.rs
issue-69101-bounds-check.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-73031.rs
issue-73258.rs
issue-73338-effecient-cmp.rs
issue-73396-bounds-check-after-position.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-73827-bounds-check-index-in-subexpr.rs
issue-74938-array-split-at.rs
issue-75525-bounds-checks.rs
issue-75546.rs
issue-75659.rs
issue-75978.rs
issue-77812.rs
issue-84268.rs
issue-85872-multiple-reverse.rs
issue-86106.rs
issue-86109-eliminate-div-by-zero-check.rs
issue-93036-assert-index.rs
issue-96274.rs
issue-96497-slice-size-nowrap.rs
issue-98294-get-mut-copy-from-slice-opt.rs
issue-98678-async.rs
issue-98678-closure-coroutine.rs
issue-98678-enum.rs
issue-98678-struct-union.rs
issue-99960.rs
issue-101048.rs
issue-101082.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
issue-101814.rs
issue-103132.rs
issue-103285-ptr-addr-overflow-check.rs
issue-103327.rs
issue-103840.rs
issue-105386-ub-in-debuginfo.rs llvm: Accept new LLVM lifetime format 2025-08-11 22:00:41 +00:00
issue-106369.rs
issue-107681-unwrap_unchecked.rs
issue-108395-branchy-bool-match.rs
issue-109328-split_first.rs
issue-110797-enum-jump-same.rs
issue-111603.rs
issue-112509-slice-get-andthen-get.rs
issue-113757-bounds-check-after-cmp-max.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-114312.rs
issue-115385-llvm-jump-threading.rs
issue-116878.rs
issue-118306.rs Adjust issue-118306.rs test after LLVM change 2025-09-02 12:04:04 +02:00
issue-118392.rs
issue-119422.rs
issue-121719-common-field-offset.rs
issue-122600-ptr-discriminant-update.rs tests: use max-llvm-major-version instead of ignore-llvm-version 2025-09-26 13:32:03 -04:00
issue-122734-match-eq.rs Add test for issue 122734 2025-08-13 14:24:28 +00:00
issue-123712-str-to-lower-autovectorization.rs
issue-126585.rs
issue-129795.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
issue-136329-optnone-noinline.rs
iter-max-no-unwrap-failed-129583.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
looping-over-ne-bytes-133528.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
matches-logical-or-141497.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
no-bounds-check-after-assert-110971.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
no-panic-for-pop-after-assert-71257.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
num-is-digit-to-digit-59352.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
saturating-sub-index-139759.rs Add regression test for saturating_sub bounds check issue 2025-08-07 15:11:52 -04:00
slice-index-bounds-check-80075.rs Add codegen regression tests 2025-08-20 22:29:45 -04:00
str-to-string-128690.rs