[CSSPGO][llvm-profgen] Fix an issue in findDisjointRanges
authorHongtao Yu <hoy@fb.com>
Fri, 18 Jun 2021 01:02:45 +0000 (18:02 -0700)
committerHongtao Yu <hoy@fb.com>
Fri, 18 Jun 2021 21:38:48 +0000 (14:38 -0700)
commitfb19aa0c74fdb864ddbd677a7b3585661966a098
treea11c9b91bf927cb6b0c303310498e1c08ac9c581
parentd1baf2895467735ab14f4b3415fce204c0cc8e7f
[CSSPGO][llvm-profgen] Fix an issue in findDisjointRanges

We were using 0 as an indicator of invalid offset when computing disjoint ranges. In reality, 0 can be an valid code offset which stands for the first function in .text section. I'm using UINT64_MAX as an invalid code offset instead.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D104497
llvm/tools/llvm-profgen/ProfileGenerator.cpp