We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7b780d commit 21f1f4fCopy full SHA for 21f1f4f
mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
@@ -776,7 +776,9 @@ struct WgToSgLoadGatherOpWithOffset
776
return failure();
777
778
Location loc = op.getLoc();
779
- VectorType resultType = op.getResult().getType();
+ VectorType resultType = dyn_cast<VectorType>(op.getResult().getType());
780
+ if (!resultType)
781
+ return failure();
782
ArrayRef<int64_t> wgShape = resultType.getShape();
783
784
xegpu::LayoutAttr layout = xegpu::getLayoutAttr(op.getResult());
0 commit comments