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() {
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.
You can’t perform that action at this time.
0 commit comments