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 15d432f commit d1e4983Copy full SHA for d1e4983
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1070,8 +1070,8 @@ struct ReorderElementwiseOpsOnBroadcast final
1070
Attribute newConst;
1071
Type elementType = getElementTypeOrSelf(operand.getType());
1072
Type newType = cloneOrReplace(unbroadcastResultType, elementType);
1073
- if (auto shapedTy = dyn_cast<ShapedType>(unbroadcastResultType)) {
1074
- newConst = splatConst.resizeSplat(cast<ShapedType>(newType));
+ if (auto newTypeShaped = dyn_cast<ShapedType>(newType)) {
+ newConst = splatConst.resizeSplat(newTypeShaped);
1075
} else {
1076
newConst = splatConst.getSplatValue<Attribute>();
1077
}
0 commit comments