File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
mlir/lib/Dialect/Vector/IR Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -2841,19 +2841,6 @@ LogicalResult BroadcastOp::verify() {
2841
2841
llvm_unreachable (" unexpected vector.broadcast op error" );
2842
2842
}
2843
2843
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
-
2857
2844
// Fold broadcast(shape_cast(x)) into broadcast(x) if x's type is compatible
2858
2845
// with broadcast's result type and shape_cast only adds or removes ones in the
2859
2846
// leading dimensions.
You can’t perform that action at this time.
0 commit comments