aco: add various compiler statistics
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 4 Dec 2019 15:19:56 +0000 (15:19 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 12:12:08 +0000 (12:12 +0000)
commitb1544352c022953febcc2c2c448ba21551e6b215
treed1a3ce23dcae47bdeba40cfac3e2a65cf49db09e
parentad2703653f306f0fa751ddfd546d1d93ce348630
aco: add various compiler statistics

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

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2965>
src/amd/compiler/aco_interface.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_lower_to_hw_instr.cpp
src/amd/compiler/aco_statistics.cpp [new file with mode: 0644]
src/amd/compiler/meson.build