[Mlir-commits] [mlir] [MLIR][XeGPU] Add 2D `vector.multi_reduction` optimization (PR #171154)

Jianhui Li llvmlistbot at llvm.org
Fri Dec 19 09:34:47 PST 2025


================
@@ -592,6 +592,25 @@ bool SliceAttr::isSliceOf(const xegpu::DistributeLayoutAttr &other) {
                       [&](int64_t dim) { return thisDims.contains(dim); });
 }
 
+xegpu::SliceAttr SliceAttr::dropSliceDims(ArrayRef<int64_t> dimsToDrop) {
+  auto flattenedThis = flatten();
----------------
Jianhui-Li wrote:

No need to flatten it. DimsToDrops should apply to unflattened sliceAttr. 

https://github.com/llvm/llvm-project/pull/171154


More information about the Mlir-commits mailing list