[Mlir-commits] [mlir] [MLIR][XeGPU] Recover temporary layout from Anchor Layout (PR #191947)
Artem Kroviakov
llvmlistbot at llvm.org
Fri Apr 17 10:16:48 PDT 2026
================
@@ -1122,17 +1305,16 @@ xegpu::setupDpasLayout(xegpu::LayoutKind layoutKind, VectorType aTy,
return std::nullopt;
}
-xegpu::DistributeLayoutAttr xegpu::getConsumerLayoutAt(OpOperand &operand) {
+xegpu::DistributeLayoutAttr
+xegpu::inferSourceLayoutFromResult(OpOperand &operand,
+ xegpu::DistributeLayoutAttr resLayout) {
+ if (!resLayout)
+ return xegpu::DistributeLayoutAttr();
----------------
akroviakov wrote:
There is a difference between an empty attribute and a nullptr. Why return empty attribute here, but potentially nullptr in `getLayoutFromUsePoints`?
https://github.com/llvm/llvm-project/pull/191947
More information about the Mlir-commits
mailing list