[llvm-branch-commits] [llvm] [llvm] Extract and propagate indirect call type id (PR #87575)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 11 08:19:09 PST 2024
================
@@ -3631,6 +3631,12 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
CLI.NumResultRegs = RVLocs.size();
CLI.Call = MIB;
+ // Add call site info for call graph section.
+ if (TM.Options.EmitCallGraphSection && CB && CB->isIndirectCall()) {
+ MachineFunction::CallSiteInfo CSInfo(*CB);
+ MF->addCallSiteInfo(CLI.Call, std::move(CSInfo));
----------------
ilovepi wrote:
Why is this using std::move when the other sites don’t?
https://github.com/llvm/llvm-project/pull/87575
More information about the llvm-branch-commits
mailing list