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 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-15953.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-27130.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-32031.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-32364.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-34634.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-34947-pow-i32.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-36010-some-box-is_some.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-37945.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-45222.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-45466.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-45964-bounds-check-slice-pos.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-47278.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-47442.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-56267-2.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-56267.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-56927.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-58881.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-59352.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-64219-fn-ptr-call-returning-never-is-noreturn.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-68667-unwrap-combinators.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-69101-bounds-check.rs Consolidate panicking functions in slice/index.rs 2025-08-21 11:07:25 +01:00
issue-73031.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-73258.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-73338-effecient-cmp.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
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 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-74938-array-split-at.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-75525-bounds-checks.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-75546.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-75659.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-75978.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-77812.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-84268.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-85872-multiple-reverse.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-86106.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-86109-eliminate-div-by-zero-check.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-93036-assert-index.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-96274.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-96497-slice-size-nowrap.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-98294-get-mut-copy-from-slice-opt.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-98678-async.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-98678-closure-coroutine.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-98678-enum.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-98678-struct-union.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-99960.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-101048.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-101082.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
issue-101814.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-103132.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-103285-ptr-addr-overflow-check.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-103327.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-103840.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-105386-ub-in-debuginfo.rs llvm: Accept new LLVM lifetime format 2025-08-11 22:00:41 +00:00
issue-106369.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-107681-unwrap_unchecked.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-108395-branchy-bool-match.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-109328-split_first.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-110797-enum-jump-same.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-111603.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-112509-slice-get-andthen-get.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
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 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-115385-llvm-jump-threading.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-116878.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-118306.rs Adjust issue-118306.rs test after LLVM change 2025-09-02 12:04:04 +02:00
issue-118392.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-119422.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-121719-common-field-offset.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
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 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-126585.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
issue-129795.rs Update the minimum external LLVM to 20 2025-09-16 11:49:20 -07:00
issue-136329-optnone-noinline.rs Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00
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 Rename tests/codegen into tests/codegen-llvm 2025-07-22 14:28:48 +02:00