diff options
author | Kazu Hirata <kazu@google.com> | 2024-07-11 16:38:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 16:38:44 -0700 |
commit | 6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40 (patch) | |
tree | 8f669fa79a052a33b0756042228e444f850a82a5 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 46307f1a84bf832f32938c8ad2dc0605441a5319 (diff) | |
download | llvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.zip llvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.tar.gz llvm-6c8ff4cbb8d6ba6ff168c9209cfd1a7279995b40.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions