[all-commits] [llvm/llvm-project] 2ee17d: [llvm-exegesis][X86] Use the same AGU counter esti...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Dec 17 06:06:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ee17d691f4f34769b64fffc6fe704ae13667256
      https://github.com/llvm/llvm-project/commit/2ee17d691f4f34769b64fffc6fe704ae13667256
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-12-17 (Sat, 17 Dec 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86PfmCounters.td

  Log Message:
  -----------
  [llvm-exegesis][X86] Use the same AGU counter estimate mapping for znver1 as znver2, and count RMW ops as well

znver2 can use the ld/st dispatch counters to make a reasonable estimate for the AGU usage (although it misses complex LEA ops which I don't think we can fix), although it wasn't accounting for RMW ld-st uops which are counted separately - the same approach can be used for znver1 (ymm double-pumping ld/st agu is correctly measured as 2uops)

This change is mainly academic, but was noticed as the znver1/2 models incorrectly assume scalar RMW ops take 2uops




More information about the All-commits mailing list