[Mlir-commits] [mlir] a0241e7 - Fix late comment review for #102038 (#102869)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Aug 12 03:10:06 PDT 2024


Author: Giuseppe Rossini
Date: 2024-08-12T11:10:01+01:00
New Revision: a0241e710fcae9f439e57d3a294b1ace97c6906c

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

LOG: Fix late comment review for #102038 (#102869)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/RegionUtils.cpp b/mlir/lib/Transforms/Utils/RegionUtils.cpp
index dd75e283a36b8d..3c7523827699c8 100644
--- a/mlir/lib/Transforms/Utils/RegionUtils.cpp
+++ b/mlir/lib/Transforms/Utils/RegionUtils.cpp
@@ -1012,7 +1012,8 @@ static LogicalResult dropRedundantArguments(RewriterBase &rewriter,
 
     // Add any nested regions to the worklist.
     for (Block &block : *region) {
-      anyChanged = succeeded(dropRedundantArguments(rewriter, block));
+      anyChanged =
+          succeeded(dropRedundantArguments(rewriter, block)) || anyChanged;
 
       for (Operation &op : block)
         for (Region &nestedRegion : op.getRegions())


        


More information about the Mlir-commits mailing list