If the extracts from the non-power-2 vectors are recognized as shuffles,
need some extra checks to not crash cost calculations if trying to gext
the ecost for subvector extracts. In this case need to check carefully
that we do not exit out of bounds of the original vector, otherwise the
TTI's cost model will crash on assert.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
3600–3601 | This could use a comment or a code example to explain. I can't tell just from looking at this what the new SubVT represents. | |
llvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat.ll | ||
226 | Add a new test instead of changing the existing test? |
llvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat.ll | ||
---|---|---|
226 | Done, thanks and sorry for the mess with the previous test |
This could use a comment or a code example to explain. I can't tell just from looking at this what the new SubVT represents.