Convert subtensor and subtensor_insert operations to use their
rank-reduced versions to drop unit dimensions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
THe changes to DropUnitDims.cpp (and the test file) are pulled out from https://reviews.llvm.org/D101258. Landing those changes required changes to the subview -> load folding needed for SPIR-V path to make it handle the rank-reducing case.
Comment Actions
Cool! Thanks for rewriting the std op chain into affine apply chain!
mlir/lib/Dialect/MemRef/Transforms/FoldSubViewOps.cpp | ||
---|---|---|
58 | Hmm, I recall seeing this check at various places. It might be worth creating some utility function for it. But your choice. | |
83 | This if-else construct can be merged into the above? |
Hmm, I recall seeing this check at various places. It might be worth creating some utility function for it. But your choice.