llvm-project
296a9563 - [BOLT] Match functions with call graph (#98125)

Commit
1 year ago
[BOLT] Match functions with call graph (#98125) Implemented call graph function matching. First, two call graphs are constructed for both profiled and binary functions. Then functions are hashed based on the names of their callee/caller functions. Finally, functions are matched based on these neighbor hashes and the longest common prefix of their names. The `match-with-call-graph` flag turns this matching on. Test Plan: Added match-with-call-graph.test. Matched 164 functions in a large binary with 10171 profiled functions.
Author
Parents
Loading