[all-commits] [llvm/llvm-project] 3d6ac5: [mlir][func] Fix a crash in DuplicateFunctionElimi...
Longsheng Mou via All-commits
all-commits at lists.llvm.org
Tue Aug 4 19:11:07 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3d6ac5a9ba252cbaf8d12cecef89d015f1ffe0f7
https://github.com/llvm/llvm-project/commit/3d6ac5a9ba252cbaf8d12cecef89d015f1ffe0f7
Author: Longsheng Mou <longshengmou at gmail.com>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M mlir/lib/Dialect/Func/Transforms/DuplicateFunctionElimination.cpp
M mlir/test/Dialect/Func/duplicate-function-elimination.mlir
Log Message:
-----------
[mlir][func] Fix a crash in DuplicateFunctionEliminationPass (#209667)
Previously, we used `SymbolUserMap::replaceAllUsesWith` to replace
symbols, but this could not update the symbol table cached by
`SymbolUserMap` during traversal, leading to a crash. This PR switches
to `SymbolTable::replaceAllSymbolUses`, which always operates on the
latest symbol table and avoids the crash. Fixes #209648.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list