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 60f3fdd commit 06d4ab2Copy full SHA for 06d4ab2
mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
@@ -437,6 +437,8 @@ struct UnrollElementwisePattern : public RewritePattern {
437
auto dstVecType = cast<VectorType>(op->getResult(0).getType());
438
SmallVector<int64_t> originalSize =
439
*cast<VectorUnrollOpInterface>(op).getShapeForUnroll();
440
+ if (originalSize.size() != targetShape->size())
441
+ return failure();
442
Location loc = op->getLoc();
443
// Prepare the result vector.
444
Value result = rewriter.create<arith::ConstantOp>(
0 commit comments