Skip to content

Commit e49e1cf

Browse files
committed
clean up
1 parent 27da02a commit e49e1cf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,14 @@ SliceAttr SliceAttr::flatten() const {
350350
llvm::to_vector(llvm::seq<int64_t>(0, layoutAttr.getRank()));
351351

352352
// get remaining dims (flattend) by applying slice ops with all slicedDims
353-
SmallVector<int64_t> remainingIndices(indices);
353+
SmallVector<int64_t> remainingDims(indices);
354354
for (auto dim : llvm::reverse(slicedDims))
355-
remainingIndices = XeGPUDialect::slice(
356-
llvm::ArrayRef<int64_t>(remainingIndices), dim.asArrayRef());
355+
remainingDims = XeGPUDialect::slice(llvm::ArrayRef<int64_t>(remainingDims),
356+
dim.asArrayRef());
357357

358358
// get flattend sliced dims by applying slice ops with the remaining dims
359-
SmallVector<int64_t> flattendDims =
360-
XeGPUDialect::slice(llvm::ArrayRef<int64_t>(indices),
361-
llvm::ArrayRef<int64_t>(remainingIndices));
359+
SmallVector<int64_t> flattendDims = XeGPUDialect::slice(
360+
llvm::ArrayRef<int64_t>(indices), llvm::ArrayRef<int64_t>(remainingDims));
362361

363362
return xegpu::SliceAttr::get(
364363
getContext(), layoutAttr,

0 commit comments

Comments
 (0)