This patch reports number of counts being dropped when a hash-mismatch
happens. This information will be helpful to the users -- if the dropped
counts are large, the user should redo the instrumentation build and
recollect the profile.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
llvm/lib/ProfileData/InstrProfReader.cpp | ||
---|---|---|
1043 | Add handling of saturation using max. |
Comment Actions
It's almost impossible for the sum of a function's raw count values to
reach the max of uint64. If that happens, there must be something wrong.
We handle saturation in BFI weight where the type is int32.
-Rong
Comment Actions
When adding them up, it is still possible for a large function. No fancy handling is needed, just need to cap it .
Add handling of saturation using max.