[Mlir-commits] [mlir] Fix block merging (PR #97697)

Jakub Kuderski llvmlistbot at llvm.org
Mon Jul 8 08:20:33 PDT 2024


================
@@ -818,6 +885,109 @@ static LogicalResult mergeIdenticalBlocks(RewriterBase &rewriter,
   return success(anyChanged);
 }
 
+static LogicalResult dropRedundantArguments(RewriterBase &rewriter,
+                                            Block &block) {
+  SmallVector<size_t> argsToErase;
+
+  // Go through the arguments of the block
----------------
kuhar wrote:

Similar comments like in the other functions.

https://github.com/llvm/llvm-project/pull/97697


More information about the Mlir-commits mailing list