[llvm] [SampleFDO] Stale profile call-graph matching (PR #92151)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 1 16:56:29 PDT 2024
================
@@ -21,6 +21,7 @@ namespace llvm {
using AnchorList = std::vector<std::pair<LineLocation, FunctionId>>;
using AnchorMap = std::map<LineLocation, FunctionId>;
+using FunctionMap = HashKeyMap<std::unordered_map, FunctionId, Function *>;
----------------
WenleiHe wrote:
This type is used elsewhere too (`SampleProfileLoader`). Either use the type alias everywhere or spell out the full type everywhere. Maybe it's better to just spell out the type name to be explicit?
https://github.com/llvm/llvm-project/pull/92151
More information about the llvm-commits
mailing list