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