[Mlir-commits] [mlir] 90c9458 - [mlir][affine] Remove redundant copyNests.clear() after declaration (NFC) (#206348)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jun 29 00:30:41 PDT 2026


Author: lonely eagle
Date: 2026-06-29T15:30:36+08:00
New Revision: 90c94584c6758f64a71b31509b91c7a70ff17380

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

LOG: [mlir][affine] Remove redundant copyNests.clear() after declaration (NFC) (#206348)

The clear() call immediately following the declaration of copyNests is
redundant since a default-constructed DenseSet is already empty. Remove
it.

Added: 
    

Modified: 
    mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp b/mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
index 6537b8a55c159..82923b2af5bdb 100644
--- a/mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
@@ -208,9 +208,6 @@ void AffineDataCopyGeneration::runOnOperation() {
   // nests are stored herein.
   DenseSet<Operation *> copyNests;
 
-  // Clear recorded copy nests.
-  copyNests.clear();
-
   for (auto &block : f)
     runOnBlock(&block, copyNests);
 


        


More information about the Mlir-commits mailing list