summaryrefslogtreecommitdiff
path: root/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 11:43:05 -0700
committerGitHub <noreply@github.com>2024-08-04 11:43:05 -0700
commit5262865aac683b72f3e66de7a122e0c455ab6b9b (patch)
treedbad4134b53930ac7d815147a4b49f8df06b705b /mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
parente525f91640770d4cb96c30398e0b21f5cbd03430 (diff)
[mlir] Construct SmallVector with ArrayRef (NFC) (#101896)
Diffstat (limited to 'mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp')
-rw-r--r--mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
index c978699e179f..592e24af94d6 100644
--- a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
+++ b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
@@ -96,15 +96,14 @@ private:
return std::nullopt;
dstVec = vecType;
}
- return SmallVector<int64_t>(dstVec.getShape().begin(),
- dstVec.getShape().end());
+ return SmallVector<int64_t>(dstVec.getShape());
}
if (auto writeOp = dyn_cast<vector::TransferWriteOp>(op)) {
auto insert = writeOp.getVector().getDefiningOp<InsertStridedSliceOp>();
if (!insert)
return std::nullopt;
ArrayRef<int64_t> shape = insert.getSourceVectorType().getShape();
- return SmallVector<int64_t>(shape.begin(), shape.end());
+ return SmallVector<int64_t>(shape);
}
return std::nullopt;
}