This is a preparation patch that allows us to get rid of the ValueDataSize field in the raw header. By removing that field, the value profile writer code can be greatly simplified without the need to be split into two phases : data gathering and writing, which will also reduce the memory usage in profile runtime (no need to buffer all value data before writing out).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good with a nit.
lib/ProfileData/InstrProfReader.cpp | ||
---|---|---|
431 ↗ | (On Diff #56240) | I suggest adding something like getNextHeaderPos() (which asserts atEnd()) to RawInstrProfReader for clarity. |
Comment Actions
Actually I am not sure. Next one
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/23854 has
that step green, but I see no CL fixing this.