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 8c91b39 commit 89cac4dCopy full SHA for 89cac4d
mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
@@ -441,7 +441,7 @@ void XeGPUWgToSgDistributePass::runOnOperation() {
441
int count;
442
SmallVector<int64_t> subShape;
443
std::tie(subShape, count) = getSgShapeAndCount(
444
- shape, dyn_cast<xegpu::LayoutAttr>(type.getEncoding()));
+ shape, dyn_cast_if_present<xegpu::LayoutAttr>(type.getEncoding()));
445
446
auto newTy = VectorType::get(subShape, elemTy);
447
result.append(count, newTy);
0 commit comments