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 D107108
[MIPS][CallSiteInfo][NFC] Fill CallSiteInfo only when needed Prabhuk on Jul 29 2021, 2:41 PM. Authored by
Details Argument-register pairs in CallSiteInfo is only needed when EmitCallSiteInfo Don't fill the CallSiteInfo vector unless used.
Diff Detail
Unit Tests Event Timeline
|
I think we should fill the CallSiteInfo iff the Options.EmitCallSiteInfo is true only. The Options.SupportsDebugEntryValues is related to debug information that uses these call-site-info, but the CSInfo can be used for something else (even if the -g is not present; for example for the feature you are adding).
(Also, X86 and ARM fill that way).