[llvm] [IPO] NFC: avoid recalculating FunctionId hashes during ProfiledCallGraph construction (PR #109014)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 11:46:36 PDT 2024
================
@@ -135,27 +148,31 @@ class ProfiledCallGraph {
ProfiledCallGraphNode *getEntryNode() { return &Root; }
void addProfiledFunction(FunctionId Name) {
+ addProfiledFunction(PrehashedFunctionId{Name});
+ }
+
+private:
+ void addProfiledFunction(PrehashedFunctionId Name) {
----------------
itrofimow wrote:
Done
https://github.com/llvm/llvm-project/pull/109014
More information about the llvm-commits
mailing list