Computing dropped unit-dims when all the unit dims are dropped, does
not need to check for strides being dropped.
This also enables canonicalization of reduced-rank subviews.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I believe this change produces a comparison warning with clang:
llvm-project/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp:764:50: error: comparison of integers of different signs: 'unsigned long' and 'int64_t' (aka 'long') [-Werror,-Wsign-compare] if (unusedDims.count() + reducedType.getRank() == originalType.getRank())