[llvm] [SampleFDO] Improve stale profile matching by diff algorithm (PR #87375)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 22:55:11 PDT 2024


================
@@ -19,6 +19,9 @@
 
 namespace llvm {
 
+using Anchor = std::pair<LineLocation, FunctionId>;
----------------
WenleiHe wrote:

nit: instead of defining `Anchor` which is not used by `AnchorMap`, how about `using AnchorList = std::vector<std::pair<LineLocation, FunctionId>>` and not defining a common `Anchor` type? 

https://github.com/llvm/llvm-project/pull/87375


More information about the llvm-commits mailing list