Skip to content

Commit 24d528c

Browse files
Prabhuknecipfazil
andauthored
[MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed (#86847)
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]>
1 parent 59dd10f commit 24d528c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Mips/MipsISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3381,7 +3381,7 @@ MipsTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
33813381

33823382
// Collect CSInfo about which register passes which parameter.
33833383
const TargetOptions &Options = DAG.getTarget().Options;
3384-
if (Options.SupportsDebugEntryValues)
3384+
if (Options.EmitCallSiteInfo)
33853385
CSInfo.emplace_back(VA.getLocReg(), i);
33863386

33873387
continue;

0 commit comments

Comments
 (0)