[llvm] 24d528c - [MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed (#86847)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 23:21:49 PDT 2024


Author: Prabhuk
Date: 2024-04-02T14:21:45+08:00
New Revision: 24d528cf4685668d3ad17116846769bed843e933

URL: https://github.com/llvm/llvm-project/commit/24d528cf4685668d3ad17116846769bed843e933
DIFF: https://github.com/llvm/llvm-project/commit/24d528cf4685668d3ad17116846769bed843e933.diff

LOG: [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 <necip at google.com>

Added: 
    

Modified: 
    llvm/lib/Target/Mips/MipsISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index 0a0d40751fcf05..1c9c99c6fa9459 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp
@@ -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;


        


More information about the llvm-commits mailing list