[Mlir-commits] [mlir] [MLIR] Make `OneShotModuleBufferize` use `OpInterface` (PR #110322)

Matthias Springer llvmlistbot at llvm.org
Sat Sep 28 01:20:28 PDT 2024


================
@@ -255,6 +255,9 @@ static void equivalenceAnalysis(FunctionOpInterface funcOp,
                                 OneShotAnalysisState &state,
                                 FuncAnalysisState &funcState) {
   funcOp->walk([&](CallOpInterface callOp) {
+    if (isa<func::CallIndirectOp>(callOp))
+      return WalkResult::skip();
+
     FunctionOpInterface calledFunction = getCalledFunction(callOp);
     assert(calledFunction && "could not retrieved called FunctionOpInterface");
----------------
matthias-springer wrote:

This looks good. Skipping call ops for which we cannot find the target should be fine. 

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


More information about the Mlir-commits mailing list