[BOLT] Use LTO fuzzy name matching in function-order
authorAmir Ayupov <aaupov@fb.com>
Wed, 25 Jan 2023 19:37:55 +0000 (11:37 -0800)
committerAmir Ayupov <aaupov@fb.com>
Wed, 25 Jan 2023 19:43:10 +0000 (11:43 -0800)
commit287508cd9c4396c8845d92310d258879202a179e
tree1555541af04c0c4bc0104bcf49408e8db7118f34
parente20074053da8cfad101f2752fd2e8fb0224ec21c
[BOLT] Use LTO fuzzy name matching in function-order

Allow partial name matching wrt LTO suffixes in `function-order`
user-supplied function list, the same as permitted by profile matching.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D142269
bolt/lib/Passes/ReorderFunctions.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
bolt/test/X86/Inputs/order-lite.txt
bolt/test/X86/function-order-lite.s