diff --git a/mlir/lib/Transforms/Inliner.cpp b/mlir/lib/Transforms/Inliner.cpp --- a/mlir/lib/Transforms/Inliner.cpp +++ b/mlir/lib/Transforms/Inliner.cpp @@ -434,8 +434,11 @@ LogicalResult inlineResult = inlineCall( inliner, call, cast(targetRegion->getParentOp()), targetRegion, /*shouldCloneInlinedRegion=*/!inlineInPlace); - if (failed(inlineResult)) + if (failed(inlineResult)) { + LLVM_DEBUG(llvm::dbgs() << "** Failed to inline :"); + call.dump(); continue; + } inlinedAnyCalls = true; // If the inlining was successful, Merge the new uses into the source node.