Skip to content

Commit 05184a6

Browse files
necipfazilPrabhuk
authored andcommitted
[MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed
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
1 parent 96b3969 commit 05184a6

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)