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
Event Timeline
llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll | ||
---|---|---|
12 ↗ | (On Diff #515335) | This doesn't look faster imo |
llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll | ||
---|---|---|
12 ↗ | (On Diff #515335) | 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 ↗ | (On Diff #515335) | Thanks for catching that - I'll get it updated |