[llvm] [MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed (PR #86847)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 20:35:40 PDT 2024
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/86847
>From 05184a6118adacfde9d9399bbbb4a2f23aef8234 Mon Sep 17 00:00:00 2001
From: Necip Fazil Yildiran <necip at google.com>
Date: Tue, 7 Nov 2023 10:49:30 -0800
Subject: [PATCH] [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
---
llvm/lib/Target/Mips/MipsISelLowering.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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