[llvm] [llvm-profdata] Use simple enum for error checking in Sample Profile Reader (PR #67453)

William Junda Huang via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 12:39:14 PDT 2023


huangjd wrote:

Here is comparison of the profile. The left one is baseline and right one is this patch. Showing the disassembly of readNumber because it is the function that is called by almost every other functions in the reader.


![Screenshot from 2023-09-26 19-27-04](https://github.com/llvm/llvm-project/assets/4660595/cd4af17f-c52d-4289-be07-c41ee1d57541)

![Screenshot from 2023-09-26 19-36-24](https://github.com/llvm/llvm-project/assets/4660595/bc1fb3c9-745d-410a-bb51-557d9139bca0)


https://github.com/llvm/llvm-project/pull/67453


More information about the llvm-commits mailing list