[Mlir-commits] [mlir] [mlir] Construct SmallVector with ArrayRef (NFC) (PR #134023)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Apr 1 20:24:54 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/134023.diff
1 Files Affected:
- (modified) mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp (+1-1)
``````````diff
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
index 78c242571935c..6868c393f99e6 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp
@@ -301,7 +301,7 @@ LogicalResult TensorDescType::verify(
// For 1D tensor, pad the shape with an outer unit dimension to allow common
// validation logic.
- SmallVector<int64_t> tensorShape(shape.begin(), shape.end());
+ SmallVector<int64_t> tensorShape(shape);
if (rank == 1)
tensorShape = {1, tensorShape.back()};
``````````
</details>
https://github.com/llvm/llvm-project/pull/134023
More information about the Mlir-commits
mailing list