aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorwlei <wlei@fb.com>2023-08-24 21:06:59 -0700
committerwlei <wlei@fb.com>2023-08-30 18:00:23 -0700
commit148cceb0d6b5229fd57edd81a3c795da1a0cdbb1 (patch)
treef022ddc02b81b6f0c870a836b1ee09d81dc1d9aa /flang/lib/Frontend/CompilerInvocation.cpp
parent394e52a0bb576508e0fed59ab267e75cf1350fca (diff)
downloadllvm-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