[Mlir-commits] [mlir] 3bd1ff9 - Fix NDEBUG unused-variable warning after 05f6e93938b73d8335f72e852f5686521cca2390.

James Y Knight llvmlistbot at llvm.org
Fri Jan 14 13:16:06 PST 2022


Author: James Y Knight
Date: 2022-01-14T21:15:33Z
New Revision: 3bd1ff9a232741d2e7e6a270fe95ee3e4fe3a2d6

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

LOG: Fix NDEBUG unused-variable warning after 05f6e93938b73d8335f72e852f5686521cca2390.

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/LoopUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 90ae564fab3c2..9d94a5d8de905 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -3143,10 +3143,9 @@ LogicalResult mlir::affineDataCopyGenerate(Block::iterator begin,
 
   // For a range of operations, a note will be emitted at the caller.
   AffineForOp forOp;
-  uint64_t sizeInKib = llvm::divideCeil(totalCopyBuffersSizeInBytes, 1024);
   if (llvm::DebugFlag && (forOp = dyn_cast<AffineForOp>(&*begin))) {
     LLVM_DEBUG(forOp.emitRemark()
-               << sizeInKib
+               << llvm::divideCeil(totalCopyBuffersSizeInBytes, 1024)
                << " KiB of copy buffers in fast memory space for this block\n");
   }
 


        


More information about the Mlir-commits mailing list