[llvm-profdata] Stabilize iteration order for InstrProfWriter
If two functions are inserted to the same bucket, their order in the serialized profile is dependent on StringMap iteration order, which is not guaranteed to be deterministic. (https://llvm.org/docs/ProgrammersManual.html#llvm-adt-stringmap-h). Use a sort like we do in writeText.
Loading
Please sign in to comment