llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.6k stars 11.82k forks source link

[BOLT] print-cache-metrics prints nan% #73227

Open aaupov opened 11 months ago

aaupov commented 11 months ago

Command:

$ ~/workspace/test/build/bin/llvm-bolt ./bin/clang++ -o ./bin/clang++.bolt \
  -data=perf.fdata --print-profile-stats --print-cache-metrics

Output:

  BOLT-INFO: cache metrics after emitting functions:
  There are 136051 functions; 12404 (9.12%) are in the hot section, 12455 (9.15%) have profile
  There are 560754 basic blocks; 560754 (100.00%) are in the hot section
  Hot code takes -nan% of binary (0 bytes out of 0, 0.00 huge pages)
  Expected i-TLB cache hit ratio: 97.55%
  TSP score: 98.16% (3566771 out of 3633667)

Shows -nan% hot code

llvmbot commented 11 months ago

@llvm/issue-subscribers-bolt

Author: Amir Ayupov (aaupov)

Command: ``` $ ~/workspace/test/build/bin/llvm-bolt ./bin/clang++ -o ./bin/clang++.bolt \ -data=perf.fdata --print-profile-stats --print-cache-metrics ``` Output: ``` BOLT-INFO: cache metrics after emitting functions: There are 136051 functions; 12404 (9.12%) are in the hot section, 12455 (9.15%) have profile There are 560754 basic blocks; 560754 (100.00%) are in the hot section Hot code takes -nan% of binary (0 bytes out of 0, 0.00 huge pages) Expected i-TLB cache hit ratio: 97.55% TSP score: 98.16% (3566771 out of 3633667) ``` Shows `-nan% hot code`
aaupov commented 11 months ago

CC @dendibakh