Currently the compiler calculates the compensation cost for the
extractelements, removed during vectorization. But if the extractelement
instruction is used in several nodes, we can calculate the compensation
for them several times.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll | ||
---|---|---|
12 | This doesn't look faster imo |
llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll | ||
---|---|---|
12 | TTI reports that the cost of vector mul is 4, when the scalar cost is 2 (1x2). |
llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll | ||
---|---|---|
12 | Thanks for catching that - I'll get it updated |
This doesn't look faster imo