SubViewReturnTypeCanonicalizer is used by OpWithOffsetSizesAndStridesConstantArgumentFolder, which folds constant SSA value (dynamic) sizes into static sizes. The previous implementation crashed when a dynamic size was folded into a static 1 dimension, which was then mistaken as a rank reduction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Fixes https://github.com/llvm/llvm-project/issues/60091 ? (if so can you put it in the description)
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp | ||
---|---|---|
3097 | Can droppedDims be empty here? And if so should we bail out early? |
Comment Actions
#60091 is still broken with this change. That is because SubViewOp::getDroppedDims (which is also called in this revision) is still broken and returns a wrong result in some cases (not in the test case from this change).
Can droppedDims be empty here? And if so should we bail out early?