Skip to content

aco: add various compiler statistics

Rhys Perry requested to merge pendingchaos/mesa:radv_aco_exec_stat into master

How to actually using these in shader-db/pipeline-db still needs to be figured out. The cycle statistic is also assumes that each instruction is 4 cycles and doesn't consider changes in GFX10 (we might use a post-RA scheduler for the statistic in this case though)

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"
  • vmem/smem score
  • sgpr/vgpr usage before scheduling
Edited by Rhys Perry

Merge request reports

Loading