[all-commits] [llvm/llvm-project] 102140: [GISel] Make RegBank constructor constexpr. NFC (#...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Nov 2 18:05:18 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1021404619724568d62f53e575b61ae84e82ca02
      https://github.com/llvm/llvm-project/commit/1021404619724568d62f53e575b61ae84e82ca02
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-11-02 (Thu, 02 Nov 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/RegisterBank.h
    M llvm/utils/TableGen/RegisterBankEmitter.cpp

  Log Message:
  -----------
  [GISel] Make RegBank constructor constexpr. NFC (#71109)

RegBanks are constructed as global objects. Making the constructor
constexpr helps the compiler construct it without a global
constructor.
    
clang's optimizer seems to figure this out on its own, but at
least gcc 8 does not.




More information about the All-commits mailing list