[Mlir-commits] [mlir] [MLIR][XeGPU] Switch to the new sg to wi pass (PR #188627)

Charitha Saumya llvmlistbot at llvm.org
Tue Mar 31 08:47:45 PDT 2026


================
@@ -1519,9 +1520,15 @@ struct XeGPUSgToWiDistributeExperimentalPass
 
 void XeGPUSgToWiDistributeExperimentalPass::runOnOperation() {
 
+  // Recover temporary operand layouts for usage in patterns.
+  Operation *root = getOperation();
+  if (!xegpu::recoverTemporaryLayouts(root)) {
----------------
charithaintc wrote:

why is this needed? to recover result layouts? we no longer need the operand layouts btw. 

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


More information about the Mlir-commits mailing list