[Mlir-commits] [mlir] [MLIR] RemoveDeadValues: Allowing IRs with global constants to get dead values removed (PR #116519)

Renat Idrisov llvmlistbot at llvm.org
Mon Nov 18 14:56:51 PST 2024


================
@@ -579,7 +579,6 @@ void RemoveDeadValues::runOnOperation() {
     if (op == module)
       return WalkResult::advance();
     if (isa<BranchOpInterface>(op) ||
-        (isa<SymbolOpInterface>(op) && !isa<FunctionOpInterface>(op)) ||
         (isa<SymbolUserOpInterface>(op) && !isa<CallOpInterface>(op))) {
       op->emitError() << "cannot optimize an IR with non-function symbol ops, "
----------------
parsifal-47 wrote:

updated both the comment and error message, thank you!

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


More information about the Mlir-commits mailing list