[llvm] [SandboxVectorizer] Fix out-of-bounds SeedBundle access (PR #215976)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 16 07:38:28 PDT 2026
================
@@ -0,0 +1,25 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -passes=sandbox-vectorizer -sbvec-passes="seed-collection(enable-diff-types)<tr-save,bundle-vec(bottom-up),load-store-vec,tr-accept-or-revert>" -sbvec-collect-seeds=stores,loads -mtriple=amdgpu12-amd-amdhsa %s -S | FileCheck %s
+
+define void @seed_bundle_cross_erasure(ptr addrspace(1) nocapture noalias %a, ptr addrspace(1) nocapture readonly noalias %c) {
----------------
vporpo wrote:
I think this test can be simplified to something like:
```
define void @seed_bundle_cross_erasure(ptr %ptr) {
%ptr0 = getelementptr inbounds i32, ptr %ptr, i64 0
%ptr1 = getelementptr inbounds i32, ptr %ptr, i64 1
%ld0 = load i32, ptr %ptr0, align 4
%ld1 = load i32, ptr %ptr1, align 4
store i32 %ld0, ptr %ptr0, align 4
store i32 %ld1, ptr %ptr1, align 4
ret void
}
```
https://github.com/llvm/llvm-project/pull/215976
More information about the llvm-commits
mailing list