[Mlir-commits] [mlir] [MLIR] `remove-dead-values` and RegionBranchOp canononicalizations fixes around the `IsolatedFromAbove` ops (PR #224831)

Ivan Butygin llvmlistbot at llvm.org
Sun Sep 20 11:35:02 PDT 2026


================
@@ -803,7 +803,12 @@ void RemoveDeadValues::runOnOperation() {
   // end of this pass.
   RDVFinalCleanupList finalCleanupList;
 
-  module->walk([&](Operation *op) {
+  root->walk([&](Operation *op) {
+    // Do not erase the pass root or change its operands and results. In
+    // particular, the symbol user map cannot see callers outside the root, so
+    // changing a root function's signature would leave those calls invalid.
+    if (op == root)
----------------
Hardcode84 wrote:

done

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


More information about the Mlir-commits mailing list