Skip to content

Commit

Permalink
[MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed (llvm#86847
Browse files Browse the repository at this point in the history
)

Argument-register pairs in CallSiteInfo is only needed when
EmitCallSiteInfo
is on. Currently, the pairs are always pushed to the vector but only
used
when EmitCallSiteInfo is on.

Don't fill the CallSiteInfo vector unless used.

Differential Revision: https://reviews.llvm.org/D107108?id=362887

Co-authored-by: Necip Fazil Yildiran <[email protected]>
  • Loading branch information
Prabhuk and necipfazil authored Apr 2, 2024
1 parent 59dd10f commit 24d528c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Mips/MipsISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3381,7 +3381,7 @@ MipsTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,

// Collect CSInfo about which register passes which parameter.
const TargetOptions &Options = DAG.getTarget().Options;
if (Options.SupportsDebugEntryValues)
if (Options.EmitCallSiteInfo)
CSInfo.emplace_back(VA.getLocReg(), i);

continue;
Expand Down

0 comments on commit 24d528c

Please sign in to comment.