[Mlir-commits] [mlir] a392a39 - [mlir][vector] fix typo in vector unroll transform

Christopher Bate llvmlistbot at llvm.org
Mon Jun 6 15:10:13 PDT 2022


Author: Christopher Bate
Date: 2022-06-06T16:09:13-06:00
New Revision: a392a39f75af586e3d3cd046a8361939277e067f

URL: https://github.com/llvm/llvm-project/commit/a392a39f75af586e3d3cd046a8361939277e067f
DIFF: https://github.com/llvm/llvm-project/commit/a392a39f75af586e3d3cd046a8361939277e067f.diff

LOG: [mlir][vector] fix typo in vector unroll transform

Added: 
    

Modified: 
    mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp
index b6c4114b391c1..dbca588f87f81 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorUnrollDistribute.cpp
@@ -78,7 +78,7 @@ class DecomposeShapeIterator {
   // dimensions based on `order`.
   SmallVector<int64_t> delinearize(int64_t index) const {
     // Traverse in for loop order (largest stride to smallest stride).
-    SmallVector<int64_t, 4> vectorOffsets(sliceStrides.size());
+    SmallVector<int64_t> vectorOffsets(sliceStrides.size());
     for (auto idx : loopOrder) {
       vectorOffsets[idx] = index / sliceStrides[idx];
       index %= sliceStrides[idx];


        


More information about the Mlir-commits mailing list