[llvm] bdcfcf6 - Fix unused variable warning after 68bb005ae021cbfaef8fe9fa8b3efcdf0e13e2b3

Jorge Gorbe Moya via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 11:14:56 PDT 2025


Author: Jorge Gorbe Moya
Date: 2025-06-10T11:13:53-07:00
New Revision: bdcfcf6105a81bfb5ced6f17e6866f11f8fc6f60

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

LOG: Fix unused variable warning after 68bb005ae021cbfaef8fe9fa8b3efcdf0e13e2b3

Two of the newly-added STATISTIC variables are only used within
LLVM_DEBUG blocks.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
index 1d05cd47fa0cf..a719697806270 100644
--- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -55,8 +55,10 @@ using namespace PatternMatch;
 #define DEBUG_TYPE "lower-matrix-intrinsics"
 
 STATISTIC(FlattenedMatrices, "Number of matrix flattenings");
+#ifndef NDEBUG
 STATISTIC(ReshapedMatrices, "Number of matrix reshapes");
 STATISTIC(SplitMatrices, "Number of matrix splits");
+#endif
 
 static cl::opt<bool>
     FuseMatrix("fuse-matrix", cl::init(true), cl::Hidden,


        


More information about the llvm-commits mailing list