[PATCH] D129001: [PGO] Report number of counts being dropped when a hash-mismatch happens.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 10:25:21 PDT 2022


davidxl added a comment.

In D129001#3633340 <https://reviews.llvm.org/D129001#3633340>, @xur wrote:

> 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

When adding them up, it is still possible for a large function. No fancy handling is needed, just need to cap it .


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129001/new/

https://reviews.llvm.org/D129001



More information about the llvm-commits mailing list