Skip to content

Commit 4ce6ba1

Browse files
committed
fixup! Remove unused function
1 parent 6755a75 commit 4ce6ba1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,19 +2841,6 @@ LogicalResult BroadcastOp::verify() {
28412841
llvm_unreachable("unexpected vector.broadcast op error");
28422842
}
28432843

2844-
// Return the broadcasted dimensions. Including broadcasts in the leading
2845-
// dimensions and broadcasts through unit dimension.
2846-
static BitVector getBroadcastedDims(ArrayRef<int64_t> srcShape,
2847-
ArrayRef<int64_t> destShape) {
2848-
assert(destShape.size() >= srcShape.size());
2849-
BitVector broadcastedDims(destShape.size());
2850-
broadcastedDims.set(0, destShape.size() - srcShape.size());
2851-
auto unitDims = computeBroadcastedUnitDims(srcShape, destShape);
2852-
for (int64_t dim : unitDims)
2853-
broadcastedDims.set(dim);
2854-
return broadcastedDims;
2855-
}
2856-
28572844
// Fold broadcast(shape_cast(x)) into broadcast(x) if x's type is compatible
28582845
// with broadcast's result type and shape_cast only adds or removes ones in the
28592846
// leading dimensions.

0 commit comments

Comments
 (0)