diff options
author | wlei <wlei@fb.com> | 2023-08-24 21:06:59 -0700 |
---|---|---|
committer | wlei <wlei@fb.com> | 2023-08-30 18:00:23 -0700 |
commit | 148cceb0d6b5229fd57edd81a3c795da1a0cdbb1 (patch) | |
tree | f022ddc02b81b6f0c870a836b1ee09d81dc1d9aa /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 394e52a0bb576508e0fed59ab267e75cf1350fca (diff) | |
download | llvm-148cceb0d6b5229fd57edd81a3c795da1a0cdbb1.zip llvm-148cceb0d6b5229fd57edd81a3c795da1a0cdbb1.tar.gz llvm-148cceb0d6b5229fd57edd81a3c795da1a0cdbb1.tar.bz2 |
[CSSPGO] Refactoring SampleProfileMatcher::runOnFunction
- rename `IRLocation` --> `IRAnchors`, `ProfileLocation` --> `ProfileAnchors`
- reorganize runOnFunction, fact out the finding IR anchors code into `findIRAnchors`
- introduce a new function `findProfileAnchors` to populate the profile related anchors, the result is saved into `ProfileAnchors`, it's later used for both mismatch report and matching, this can avoid to parse the `getBodySamples` and `getCallsiteSamples` for multiple times.
- move the `MatchedCallsiteLocs` stuffs from `findIRAnchors` to `countProfileMismatches` so that all the staleness metrics report are computed in one function.
- move all matching related into `runStaleProfileMatching`, and move all mismatching report into `countProfileMismatches`
Reviewed By: wenlei
Differential Revision: https://reviews.llvm.org/D158817
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions