[BOLT] Sort CallSiteInfo targets by symbol name in YAMLWriter
authorAmir Ayupov <aaupov@fb.com>
Tue, 20 Jun 2023 22:17:44 +0000 (15:17 -0700)
committerAmir Ayupov <aaupov@fb.com>
Tue, 20 Jun 2023 22:20:24 +0000 (15:20 -0700)
commit6c8731551884713f7d322852844a67d38a433623
tree7d7fe9011ae817d13e78b19d43da7f21863fb1a1
parentb0b9605a544dbf26940a48777af401a419f4e4f1
[BOLT] Sort CallSiteInfo targets by symbol name in YAMLWriter

Align YAML and fdata profiles by sorting CallSiteInfo targets by symbol name,
aligning it to fdata. By default, YAML CallSiteInfo is sorted by function id,
which is the order of function in the binary.

Follow-up to D152731, aligning yaml vs fdata, and in turn all three between to
each other.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D152733
bolt/lib/Profile/YAMLProfileWriter.cpp