[llvm] [SampleFDO] Improve stale profile matching by diff algorithm (PR #87375)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 16:28:56 PDT 2024
wlei-llvm wrote:
Or is it more clear to just use `longestCommonSequence` as a wrapper, like
```
LocToLocMap SampleProfileMatcher::longestCommonSequence(..) {
...shortestEditScript(...);
return SES.EqualLocations;
}
```
So for profile matching, we know the intention is to find the LCS , and for the implementation, it still keep the `shortestEditScript` to align with the paper.
https://github.com/llvm/llvm-project/pull/87375
More information about the llvm-commits
mailing list