[Mlir-commits] [mlir] [MLIR][XeGPU] Extend convert_layout op to support scalar type (PR #188874)
Nishant Patel
llvmlistbot at llvm.org
Thu Mar 26 20:10:01 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;
----------------
nbpatel wrote:
if its a scalar and layouts are not compatible..what happens? wgShape stays empty but its getting used below for SLM path? is this working correctly? can we just guard the code if its scalar
https://github.com/llvm/llvm-project/pull/188874
More information about the Mlir-commits
mailing list