Skip to content

Commit 126a962

Browse files
committed
Clean up
1 parent 9fbf8c0 commit 126a962

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,21 +1106,17 @@ struct UnrollShapeCastPattern : public OpRewritePattern<vector::ShapeCastOp> {
11061106
// For each unrolled tile in the result.
11071107
for (SmallVector<int64_t> tileOffsets :
11081108
StaticTileOffsetRange(resultShape, *targetShape)) {
1109-
11101109
// Create the target tile type.
11111110
auto tileType =
11121111
VectorType::get(*targetShape, resultType.getElementType());
1113-
11141112
// Build the tile by extracting individual elements.
11151113
Value tile = createTileFromElements(
11161114
rewriter, loc, shapeCastOp.getSource(), sourceShape, resultShape,
11171115
tileOffsets, *targetShape, tileType);
1118-
11191116
// Insert the tile into the result.
11201117
result = rewriter.createOrFold<vector::InsertStridedSliceOp>(
11211118
loc, tile, result, tileOffsets, strides);
11221119
}
1123-
11241120
rewriter.replaceOp(shapeCastOp, result);
11251121
return success();
11261122
}

0 commit comments

Comments
 (0)