[Mlir-commits] [mlir] [mlir][func] Fix a crash in DuplicateFunctionEliminationPass (PR #209667)
Matthias Springer
llvmlistbot at llvm.org
Sat Jul 18 04:39:56 PDT 2026
================
@@ -101,12 +101,12 @@ struct DuplicateFunctionEliminationPass
// Update all symbol uses to reference unique func op
// representants and erase redundant func ops.
- SymbolTableCollection symbolTable;
- SymbolUserMap userMap(symbolTable, module);
for (auto it : toBeErased) {
StringAttr oldSymbol = it.getSymNameAttr();
StringAttr newSymbol = getRepresentant[oldSymbol].getSymNameAttr();
- userMap.replaceAllUsesWith(it, newSymbol);
----------------
matthias-springer wrote:
Why did this crash? Is it a bug in the implementation of `replaceAllUsesWith`?
https://github.com/llvm/llvm-project/pull/209667
More information about the Mlir-commits
mailing list