================
@@ -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);
----------------
Prabhuk wrote:

Can you please help me understand the concerns here? If the lib function is 
called indirectly, there will be no callsite_type metadata set for those calls. 
Will an additional check to see if there is a "callee_type" metadata before 
initializing CSInfo address the use case you thinking about?

https://github.com/llvm/llvm-project/pull/87575
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to