llvm commit: 6effab9
Reproducer:
clang bbi-100697.c -O2 -std=c23
./a.out
Result:
This starts happening with 1833d41
Before that commit we got
which is the expected result.
I originally reported this in #107461 (comment) but @alexey-bataev did some analysis in #107461 (comment) suggesting that the error is somewhere in X86 Codegen rather than in SLP vectorizer.
As I wrote in the original report the input was originally part of a much larger test so I've reduced it a lot but unfortunately it's still quite large (and ugly).
bbi-100697.c.gz