[all-commits] [llvm/llvm-project] 9853d0: [MCA][NFCI] Minor changes to InstrBuilder and Inst...

Andrea Di Biagio via All-commits all-commits at lists.llvm.org
Mon May 31 09:06:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9853d0db1e01691562003914f1e803ab0d3a15b2
      https://github.com/llvm/llvm-project/commit/9853d0db1e01691562003914f1e803ab0d3a15b2
  Author: Andrea Di Biagio <andrea.dibiagio at sony.com>
  Date:   2021-05-31 (Mon, 31 May 2021)

  Changed paths:
    M llvm/include/llvm/MCA/InstrBuilder.h
    M llvm/include/llvm/MCA/Instruction.h
    M llvm/lib/MCA/CodeEmitter.cpp
    M llvm/lib/MCA/Context.cpp
    M llvm/tools/llvm-mca/CodeRegion.h

  Log Message:
  -----------
  [MCA][NFCI] Minor changes to InstrBuilder and Instruction.

This is based on the assumption that most simulated instructions don't define
more than one or two registers. This is true for example on x86, where
most instruction definitions don't declare more than one register write.

The default code region size has been increased from 8 to 16. This is based on
the assumption that, for small microbenchmarks, the typical code snippet size is
often less than 16 instructions.

mca::Instruction now uses bitfields to pack flags.
No functional change intended.




More information about the All-commits mailing list