[Mlir-commits] [mlir] [MLIR][XeGPU] XeVM lowering support for load_matrix/store_matrix (PR #162780)

Sang Ik Lee llvmlistbot at llvm.org
Fri Oct 10 14:05:08 PDT 2025


================
@@ -984,7 +984,7 @@ struct UnrollStoreMatrixOp : public UnrollPattern<xegpu::StoreMatrixOp> {
       return failure();
 
     Location loc = op.getLoc();
-    VectorType valueTy = op.getData().getType();
+    VectorType valueTy = llvm::dyn_cast<VectorType>(op.getData().getType());
----------------
silee2 wrote:

Segfault will happen in the line below if `dyn_cast` fails.
According to StoreMatrixOp update in this PR, data can now be a scalar type.

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


More information about the Mlir-commits mailing list