Skip to content

Commit e7f2977

Browse files
committed
fix a typo
1 parent a483699 commit e7f2977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ LayoutAttr::getOffsets(OpBuilder &builder, Location loc, Value linearId,
280280
});
281281

282282
SmallVector<Value> mods = llvm::map_to_vector(
283-
llvm::zip_equal(adds, distUnit), [&](const auto &t) -> Value {
283+
llvm::zip_equal(adds, shape), [&](const auto &t) -> Value {
284284
return builder.createOrFold<index::RemUOp>(
285285
loc, std::get<0>(t),
286286
builder.create<arith::ConstantIndexOp>(loc, std::get<1>(t)));
@@ -374,7 +374,7 @@ SliceAttr::getOffsets(OpBuilder &builder, Location loc, Value linearId,
374374
});
375375

376376
SmallVector<Value> mods = llvm::map_to_vector(
377-
llvm::zip_equal(adds, distUnit), [&](const auto &t) -> Value {
377+
llvm::zip_equal(adds, shape), [&](const auto &t) -> Value {
378378
return builder.createOrFold<index::RemUOp>(
379379
loc, std::get<0>(t),
380380
builder.create<arith::ConstantIndexOp>(loc, std::get<1>(t)));

0 commit comments

Comments
 (0)