Skip to content

Commit d91aee8

Browse files
committed
fixup! [mlir][vector] Refine vector.transfer_read hoisting/forwarding
1 parent bb31a72 commit d91aee8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ void mlir::linalg::hoistRedundantVectorTransfersOnTensor(func::FuncOp func) {
5555
static bool noAliasingUseInLoop(vector::TransferReadOp transferRead,
5656
LoopLikeOpInterface loop) {
5757
Value source = transferRead.getSource();
58+
// Skip subview and collapse_shape Ops
5859
while (auto subView = source.getDefiningOp<memref::SubViewOp>())
5960
source = subView.getSource();
6061
while (auto collapsed = source.getDefiningOp<memref::CollapseShapeOp>())

0 commit comments

Comments
 (0)