Issue 244163
Summary [fuzzer-found][LoadStoreVectorizer] opt crashes on a scalable vector load
Labels new issue
Assignees
Reporter PiesAvalon
    We found this crash using a fuzzer we are developing to test LLVM optimization passes.

On LLVM 23.1.6 (stock release build), the following IR passes `opt -passes=verify`:

```llvm
define <vscale x 4 x i32> @test_stlf_scalable() {
  %res = load <vscale x 4 x i32>, ptr null, align 16
  ret <vscale x 4 x i32> %res
}
```

Running `opt -passes=load-store-vectorizer -disable-output repro.ll` aborts with:

```text
LLVM ERROR: Cannot implicitly convert a scalable size to a fixed-width size in `TypeSize::operator ScalarTy()`
```

Replacing `<vscale x 4 x i32>` with `<4 x i32>` makes the pass complete. The scalable case also crashes on LLVM 22.1.8.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to