[llvm] [SLP]Improved reduction cost/codegen (PR #118293)

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 13:35:43 PST 2025


alinas wrote:

Attached reproducer; crashes with `opt --passes=slp-vectorizer reducedslpv.ll `
[reducedslpv.ll.txt](https://github.com/user-attachments/files/18542103/reducedslpv.ll.txt)

Hits this assert:
```
llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:821: Instruction *(anonymous namespace)::InstructionsState::getMainOp() const: Assertion `valid() && "InstructionsState is invalid."' failed.
```

https://github.com/llvm/llvm-project/pull/118293


More information about the llvm-commits mailing list