Skip to content

Commit d1e4983

Browse files
committed
Review comments
1 parent 15d432f commit d1e4983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,8 +1070,8 @@ struct ReorderElementwiseOpsOnBroadcast final
10701070
Attribute newConst;
10711071
Type elementType = getElementTypeOrSelf(operand.getType());
10721072
Type newType = cloneOrReplace(unbroadcastResultType, elementType);
1073-
if (auto shapedTy = dyn_cast<ShapedType>(unbroadcastResultType)) {
1074-
newConst = splatConst.resizeSplat(cast<ShapedType>(newType));
1073+
if (auto newTypeShaped = dyn_cast<ShapedType>(newType)) {
1074+
newConst = splatConst.resizeSplat(newTypeShaped);
10751075
} else {
10761076
newConst = splatConst.getSplatValue<Attribute>();
10771077
}

0 commit comments

Comments
 (0)