llvm-project
6c8ff4cb - [ProfileData] Take ArrayRef<InstrProfValueData> in addValueData (NFC) (#97363)

Commit
1 year ago
[ProfileData] Take ArrayRef<InstrProfValueData> in addValueData (NFC) (#97363) This patch fixes another place in ProfileData where we have a pointer to an array of InstrProfValueData and its length separately. addValueData is a bit unique in that it remaps incoming values in place before adding them to ValueSites. AFAICT, no caller of addValueData uses updated incoming values. With this patch, we add value data to ValueSites first and then remaps values there. This way, we can take ArrayRef<InstrProfValueData> as a parameter.
Parents
Loading