aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-12-18 14:21:25 -0800
committerGitHub <noreply@github.com>2024-12-18 14:21:25 -0800
commitac8a9f8fffb605514056f53f12f1fba94ee933e9 (patch)
treeecb59644909f9ef2bb9e89838433ed19dadcd5d5 /clang/lib/Frontend/TestModuleFileExtension.cpp
parentd8399d5dd6a5a7025621eddd97fc0fa1f494bad8 (diff)
downloadllvm-ac8a9f8fffb605514056f53f12f1fba94ee933e9.zip
llvm-ac8a9f8fffb605514056f53f12f1fba94ee933e9.tar.gz
llvm-ac8a9f8fffb605514056f53f12f1fba94ee933e9.tar.bz2
[memprof] Undrift MemProfRecord (#120138)
This patch undrifts source locations in MemProfRecord before readMemprof starts the matching process. The thoery of operation is as follows: 1. Collect the lists of direct calls, one from the IR and the other from the profile. 2. Compute the correspondence (called undrift map in the patch) between the two lists with longestCommonSequence. 3. Apply the undrift map just before readMemprof consumes MemProfRecord. The new function gated by a flag that is off by default.
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions