Skip to content

Commit 3ad28fc

Browse files
committed
Remove comments
1 parent 24ad7fa commit 3ad28fc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,13 @@ static Value createTileFromElements(PatternRewriter &rewriter, Location loc,
102102
// Calculate the global position in the result.
103103
SmallVector<int64_t> globalResultPos;
104104
globalResultPos.reserve(tileOffsets.size());
105-
for (auto [offset, pos] : llvm::zip(tileOffsets, tilePosition)) {
105+
for (auto [offset, pos] : llvm::zip_equal(tileOffsets, tilePosition)) {
106106
globalResultPos.push_back(offset + pos);
107107
}
108108

109-
// Convert result position to linear index.
110109
int64_t linearIndex = linearize(globalResultPos, resultStrides);
111-
// Convert linear index to source position.
112110
SmallVector<int64_t> sourcePos = delinearize(linearIndex, sourceStrides);
113-
// Extract element from source.
114111
Value element = vector::ExtractOp::create(rewriter, loc, source, sourcePos);
115-
// Insert element into tile.
116112
tile = vector::InsertOp::create(rewriter, loc, element, tile, tilePosition);
117113
}
118114
return tile;

0 commit comments

Comments
 (0)