Skip to content

Commit 89cac4d

Browse files
committed
fix
1 parent 8c91b39 commit 89cac4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void XeGPUWgToSgDistributePass::runOnOperation() {
441441
int count;
442442
SmallVector<int64_t> subShape;
443443
std::tie(subShape, count) = getSgShapeAndCount(
444-
shape, dyn_cast<xegpu::LayoutAttr>(type.getEncoding()));
444+
shape, dyn_cast_if_present<xegpu::LayoutAttr>(type.getEncoding()));
445445

446446
auto newTy = VectorType::get(subShape, elemTy);
447447
result.append(count, newTy);

0 commit comments

Comments
 (0)