[llvm] [Coro] Amortize debug info processing cost in CoroSplit (PR #109032)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 10:07:46 PDT 2024


================
@@ -135,6 +135,29 @@ void llvm::CloneFunctionAttributesInto(Function *NewFunc,
                          OldAttrs.getRetAttrs(), NewArgAttrs));
 }
 
+DISubprogram *llvm::ProcessSubprogramAttachment(const Function &F,
+                                                CloneFunctionChangeType Changes,
+                                                DebugInfoFinder &DIFinder) {
+  DISubprogram *SPClonedWithinModule = nullptr;
+  if (Changes < CloneFunctionChangeType::DifferentModule) {
+    SPClonedWithinModule = F.getSubprogram();
+  }
----------------
felipepiovezan wrote:

LLVM's coding guidelines prescribe not using `{}` around single line blocks

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


More information about the llvm-commits mailing list