File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
mlir/lib/Dialect/XeGPU/IR Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments