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 f3abfcb commit c3c69d0Copy full SHA for c3c69d0
mlir/lib/Dialect/Vector/Transforms/LowerVectorBroadcast.cpp
@@ -51,7 +51,7 @@ class BroadcastOpLowering : public OpRewritePattern<vector::BroadcastOp> {
51
int64_t srcRank = srcType.getRank();
52
int64_t dstRank = dstType.getRank();
53
54
- if (srcType.getNumElements() == 1 && dstRank == 1) {
+ if (srcRank <= 1 && dstRank == 1) {
55
SmallVector<int64_t> fullRankPosition(srcRank, 0);
56
Value ext = vector::ExtractOp::create(rewriter, loc, op.getSource(),
57
fullRankPosition);
0 commit comments