[Mlir-commits] [mlir] [mlir][xegpu] Fix seg-fault caused by setting a null attribute (PR #146002)

Chao Chen llvmlistbot at llvm.org
Tue Jul 1 13:35:51 PDT 2025


chencha3 wrote:

> Isn't there potentially the same issue with:
> 
> ```
> if (!isa<scf::IfOp, scf::ForOp, scf::WhileOp, scf::ConditionOp>(op))
>           op->setAttr(name, layout.dropSgLayoutAndData());
> ```
> 
> at the end of `XeGPUWgToSgDistributePass::runOnOperation`?

Thanks for the catch up, it is fix. 

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


More information about the Mlir-commits mailing list