aco: add various compiler statistics

Graphics / Mesa 3D Graphics Library / Mesa - Rhys Perry [gmail.com] - 3 April 2020 12:12 EDT

Adds these statistics:- hash of code and constant data- number of instructions- number of copies from pseudo-instructions- number of branches- estimate of cycles spent not waiting in s_waitcnt- number of vmem/smem "clauses"- sgpr/vgpr usage before scheduling

b1544352c02 aco: add various compiler statistics
src/amd/compiler/aco_interface.cpp | 44 +++++++++++++--
src/amd/compiler/aco_ir.h | 20 +++++++
src/amd/compiler/aco_lower_to_hw_instr.cpp | 5 ++
src/amd/compiler/aco_statistics.cpp | 88 ++++++++++++++++++++++++++++++
src/amd/compiler/meson.build | 3 +-
5 files changed, 155 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share