[Mlir-commits] [mlir] [mlir][SymbolTable] Handle unknown symbol users in SymbolUserMap (PR #227918)
Mehdi Amini
llvmlistbot at llvm.org
Mon Oct 5 14:56:44 PDT 2026
================
@@ -1076,6 +1082,12 @@ SymbolUserMap::SymbolUserMap(SymbolTableCollection &symbolTable,
}
bool SymbolUserMap::areAllUsesVisible(Operation *symbol) const {
+ for (Operation *parent = symbol->getParentOp(); parent;
+ parent = parent->getParentOp()) {
+ if (symbolTablesWithUnknownUsers.contains(parent)) {
+ return false;
+ }
+ }
----------------
joker-eph wrote:
Why are we walking through all the parents recursively when the `symbolTablesWithUnknownUsers` is empty? Seems like a waste for the common case?
https://github.com/llvm/llvm-project/pull/227918
More information about the Mlir-commits
mailing list