Make getPointersDiff() and sortPtrAccesses() compatible with opaque pointers by explicitly passing in the element type instead of determining it from the pointer element type.
Details
Details
- Reviewers
ABataev lebedev.ri dblaikie - Group Reviewers
Restricted Project - Commits
- rG00d3f7cc3c26: [LAA] Make getPointersDiff() API compatible with opaque pointers
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Probably worth some test coverage, if possible - does this allow these transformations to be tested with opaque pointers now, or would we have to resort to unit tests to verify this new functionality?
Comment Actions
Add SLPVectorizer test with opaque pointers. The result is slightly suboptimal in that an unnecessary bitcast for the opaque pointer type is added, but I don't think we want to address that now.