[Mlir-commits] [mlir] Allow SymbolUserOpInterface operators to be used in RemoveDeadValues Pass (PR #117405)

Renat Idrisov llvmlistbot at llvm.org
Sun Nov 24 10:34:37 PST 2024


================
@@ -577,10 +577,8 @@ void RemoveDeadValues::runOnOperation() {
   WalkResult acceptableIR = module->walk([&](Operation *op) {
     if (op == module)
       return WalkResult::advance();
-    if (isa<BranchOpInterface>(op) ||
-        (isa<SymbolUserOpInterface>(op) && !isa<CallOpInterface>(op))) {
-      op->emitError() << "cannot optimize an IR with "
-                         "non-call symbol user ops or branch ops\n";
+    if (isa<BranchOpInterface>(op)) {
----------------
parsifal-47 wrote:

I made a follow-up PR: https://github.com/llvm/llvm-project/pull/117501 please take a look if that is sufficient

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


More information about the Mlir-commits mailing list