[Mlir-commits] [mlir] [MLIR][XeGPU] Extend convert_layout op to support scalar type (PR #188874)
Jianhui Li
llvmlistbot at llvm.org
Fri Mar 27 09:33:05 PDT 2026
================
@@ -600,8 +600,10 @@ struct WgToSgConvertLayoutOp
ConversionPatternRewriter &rewriter) const override {
Location loc = op.getLoc();
- VectorType resultType = op.getResult().getType();
- ArrayRef<int64_t> wgShape = resultType.getShape();
+ Type resultType = op.getResult().getType();
+ ArrayRef<int64_t> wgShape;
----------------
Jianhui-Li wrote:
good catch. I changed the code to add guard.
https://github.com/llvm/llvm-project/pull/188874
More information about the Mlir-commits
mailing list