Skip to content

Commit adde9a9

Browse files
committed
A few missed llvm::zip -> llvm::zip_equal
1 parent 42f3ab1 commit adde9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void createAllReduceForResultsWithoutPartialShardings(
209209
ImplicitLocOpBuilder &builder) {
210210
ReductionKind reductionKind = getReductionKindOfLinalgOp(unshardedOp);
211211
for (auto [unshardedLinalgOpResult, resultSharding] :
212-
llvm::zip(unshardedOp->getResults(), resultShardings)) {
212+
llvm::zip_equal(unshardedOp->getResults(), resultShardings)) {
213213
createAllReduceForResultWithoutPartialSharding(
214214
unshardedLinalgOpResult, opReductionMeshAxes, resultSharding,
215215
reductionKind, spmdizationMap, builder);
@@ -236,7 +236,7 @@ static void spmdizeLinalgOpWithShardedReduction(
236236
// others.
237237
IRMapping internalSpmdizationMap;
238238
for (auto [unshardedOperand, spmdizedOperand] :
239-
llvm::zip(op->getOperands(), spmdizedLinalgOpOperands)) {
239+
llvm::zip_equal(op->getOperands(), spmdizedLinalgOpOperands)) {
240240
internalSpmdizationMap.map(unshardedOperand, spmdizedOperand);
241241
}
242242
spmdizeTriviallyShardableOperation(

0 commit comments

Comments
 (0)