Skip to content

Commit 77e8a94

Browse files
committed
fix name
1 parent 916c75f commit 77e8a94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,16 +417,16 @@ bool SliceAttr::isSliceOf(const xegpu::DistributeLayoutAttr &other) {
417417
if (auto otherLayout = dyn_cast<xegpu::LayoutAttr>(other))
418418
return flattenedThis.getParent() == otherLayout;
419419
// If other is a SliceAttr, flatten it first before comparing.
420-
auto otherFlattened = dyn_cast<xegpu::SliceAttr>(other).flatten();
420+
auto flattenedOther = dyn_cast<xegpu::SliceAttr>(other).flatten();
421421
// Both must have common parent LayoutAttr.
422-
if (flattenedThis.getParent() != otherFlattened.getParent())
422+
if (flattenedThis.getParent() != flattenedOther.getParent())
423423
return false;
424424
// otherFlattened's sliced dims must be a subset of flattenedThis's sliced
425425
// dims.
426426
llvm::SmallDenseSet<int64_t> thisDims(
427427
flattenedThis.getDims().asArrayRef().begin(),
428428
flattenedThis.getDims().asArrayRef().end());
429-
return llvm::all_of(otherFlattened.getDims().asArrayRef(),
429+
return llvm::all_of(flattenedOther.getDims().asArrayRef(),
430430
[&](int64_t dim) { return thisDims.contains(dim); });
431431
}
432432

0 commit comments

Comments
 (0)