[Mlir-commits] [mlir] 51ddfd7 - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Mon Jan 9 09:51:22 PST 2023


Author: Kazu Hirata
Date: 2023-01-09T09:51:17-08:00
New Revision: 51ddfd76dd84bb95ddbf2c2d222733ffca12a2b1

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

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp:947:13:
  error: variable 'distributedDim' set but not used
  [-Werror,-Wunused-but-set-variable]

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
index f60bae61792a..07e608ab4b10 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
@@ -954,6 +954,7 @@ struct WarpOpExtract : public OpRewritePattern<WarpExecuteOnLane0Op> {
       }
     }
     assert(distributedDim != -1 && "could not find distributed dimension");
+    (void)distributedDim;
 
     // Yield source vector from warp op.
     SmallVector<int64_t> newDistributedShape(extractSrcType.getShape().begin(),


        


More information about the Mlir-commits mailing list