[Mlir-commits] [mlir] [mlir][XeGPU] Fix crash in getUArch for unsupported architectures (PR #179173)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 6 23:41:32 PST 2026


mugiwaraluffy56 wrote:

> > I think all xegpu related target-dependent passes need to gracefully fail on the absence of uArch before even trying to apply patterns.
> 
> I agree with this. Seems like most of our passes rely on uArch.

Thanks for the review and for confirming this is the right approach! Since you mentioned most XeGPU passes rely on uArch, this fix adds null checks to all getUArch() callers to handle unsupported architectures gracefully.

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


More information about the Mlir-commits mailing list