The bubble up logic was written by assuming the slice operation is
always a normal slice that outputs a tensor with the same rank.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Small suggestion, otherwise looks good!
mlir/lib/Dialect/Linalg/Transforms/BubbleUpExtractSlice.cpp | ||
---|---|---|
79 | You can just check if the sliceop is rank reducing by using sliceOp.getType().getRank() != sliceOp.getSourceType().getRank(). |
You can just check if the sliceop is rank reducing by using sliceOp.getType().getRank() != sliceOp.getSourceType().getRank().