The problem was that I transferred the llvm-prof bitcode file using the toolkit, correctly using the source file (without tools):
llvm-prof sort.bc
Another problem associated with llvm-prof is that it rounds up the frequency of the function / block due to scientific notation. I sent the patch to llvm to fix this.
One more tip: llvm-prof by default only shows the top 20 most executable base blocks, and it does not provide the user with any means to change it. I introduced another patch that adds a command line parameter that allows the user to set the number of base blocks that he / she wants to output.
source share