[llvm-branch-commits] [CallSiteInfo][CallGraphSection] Extract and propagate indirect call type ids (PR #87575)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 7 14:29:37 PDT 2024


================
@@ -7922,6 +7923,10 @@ AArch64TargetLowering::LowerCall(CallLoweringInfo &CLI,
                     *DAG.getContext());
   RetCCInfo.AnalyzeCallResult(Ins, RetCC);
 
+  // Set type id for call site info.
+  if (MF.getTarget().Options.EmitCallGraphSection && CB && CB->isIndirectCall())
+    CSInfo = MachineFunction::CallSiteInfo(*CB);
----------------
arsenm wrote:

What's the expected behavior for libcalls? Should we still be able to emit something without an IR call site? 

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


More information about the llvm-branch-commits mailing list