aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorPrabhuk <prabhukr@google.com>2024-04-01 23:21:45 -0700
committerGitHub <noreply@github.com>2024-04-02 14:21:45 +0800
commit24d528cf4685668d3ad17116846769bed843e933 (patch)
treec22e1a739d43ebfbb420ded1048e63699501e8ea /llvm/lib/Target
parent59dd10faf8c3bb9dbcecb60d932284b8762cebf8 (diff)
downloadllvm-24d528cf4685668d3ad17116846769bed843e933.zip
llvm-24d528cf4685668d3ad17116846769bed843e933.tar.gz
llvm-24d528cf4685668d3ad17116846769bed843e933.tar.bz2
[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@google.com>
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp
index 0a0d407..1c9c99c 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;