[Mlir-commits] [mlir] [MLIR][XeGPU] Extend propagation and sg_to_lane distribution pass support broadcast with low rank and scalar source input (PR #170409)

Charitha Saumya llvmlistbot at llvm.org
Sun Dec 7 21:29:35 PST 2025


================
@@ -510,6 +517,17 @@ bool SliceAttr::isSliceOf(const xegpu::DistributeLayoutAttr &other) {
                       [&](int64_t dim) { return thisDims.contains(dim); });
 }
 
+bool SliceAttr::isEqualTo(const xegpu::DistributeLayoutAttr &other) {
+  if (dyn_cast<xegpu::LayoutAttr>(other))
----------------
charithaintc wrote:

I am not sure about this. What if the SliceAttr has empty dims? In that case it could be equivalent to some LayoutAttr. 

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


More information about the Mlir-commits mailing list