To align with https://reviews.llvm.org/D95547, we need to add brackets for context id before initializing the SampleContext.
Also added test cases for extended binary format from llvm-profgen side.
Differential D95929
[CSSPGO][llvm-profgen] Add brackets for context id to support extended binary format wlei on Feb 3 2021, 12:39 AM. Authored by
Details To align with https://reviews.llvm.org/D95547, we need to add brackets for context id before initializing the SampleContext. Also added test cases for extended binary format from llvm-profgen side.
Diff Detail
Unit Tests Event Timeline
Comment Actions Thanks! Looks a lot cleaner now.
|
The whole if-else can be just replaced by OS << S.getNameWithContext(true) << ":" << S.getTotalSamples();