[Mlir-commits] [mlir] [XeGPU] Handle scf.while result types from scf.condition (PR #202931)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jun 11 04:16:29 PDT 2026


================
@@ -537,9 +526,28 @@ void xegpu::doSCFStructuralTypeConversionWithTensorType(
       return WalkResult::advance();
     });
 
+    // For scf.while, the parent op results correspond to scf.condition
+    // operands, not to the after-region scf.yield operands.
+    op->walk([](scf::ConditionOp conditionOp) {
+      auto whileOp = dyn_cast<scf::WhileOp>(conditionOp->getParentOp());
+      if (!whileOp)
+        return;
----------------
woruyu wrote:

Done! fix it to isa.

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


More information about the Mlir-commits mailing list