Skip to content

Commit 8bfb3eb

Browse files
committed
modify test
1 parent 2535f83 commit 8bfb3eb

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ struct UnrollElementwisePattern : public RewritePattern {
441441
// fact that `ExtractStridedSlice` requires the rank for the input and
442442
// output to match. If needed, we can relax this later.
443443
if (originalSize.size() != targetShape->size())
444-
return rewriter.notifyMatchFailure(op, "expected input vector rank to match target shape rank");
444+
return rewriter.notifyMatchFailure(
445+
op, "expected input vector rank to match target shape rank");
445446
Location loc = op->getLoc();
446447
// Prepare the result vector.
447448
Value result = rewriter.create<arith::ConstantOp>(

mlir/test/Dialect/Vector/invalid.mlir

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -768,14 +768,6 @@ func.func @extract_strided_slice(%arg0: vector<4x8x16xf32>) {
768768

769769
// -----
770770

771-
func.func @extract_strided_slice(%arg0: vector<3x2x2xf32>) {
772-
// expected-error@+1 {{op expected input vector rank to match target shape rank}}
773-
%1 = vector.extract_strided_slice %arg0 {offsets = [0, 0], sizes = [2, 2], strides = [1, 1]}: vector<3x2x2xf32> to vector<2x2xf32>
774-
return
775-
}
776-
777-
// -----
778-
779771
#contraction_accesses = [
780772
affine_map<(b0, f0, f1, c0, c1) -> (c0, b0, c1, f0)>,
781773
affine_map<(b0, f0, f1, c0, c1) -> (b0, c1, c0, f1)>,

0 commit comments

Comments
 (0)