From de5a7d7c773c6bbfd20b486da9f86d30108a198b Mon Sep 17 00:00:00 2001 From: Michele Scuttari Date: Sat, 24 May 2025 11:26:52 +0200 Subject: [PATCH] Use cached symbol tables to get the called function --- .../Transforms/FuncBufferizableOpInterfaceImpl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp b/mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp index 080796208bfc1..6210f1d787bf4 100644 --- a/mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp +++ b/mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp @@ -265,10 +265,7 @@ struct CallOpInterface // bufferized callee. SmallVector newOperands; - // TODO Avoid recomputing the symbol tables every time. - SymbolTableCollection symbolTable; - - FuncOp funcOp = getCalledFunction(callOp, symbolTable); + FuncOp funcOp = getCalledFunction(callOp, state.getSymbolTables()); assert(funcOp && "expected CallOp to a FuncOp"); FunctionType funcType = funcOp.getFunctionType();