[all-commits] [llvm/llvm-project] 21a1bc: [RISCV] Pass FeatureBitset by reference rather tha...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jul 4 23:13:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21a1bcbd4df8c443ab7c0168784789b5b74a7d5c
      https://github.com/llvm/llvm-project/commit/21a1bcbd4df8c443ab7c0168784789b5b74a7d5c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-07-04 (Sun, 04 Jul 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h

  Log Message:
  -----------
  [RISCV] Pass FeatureBitset by reference rather than by value. NFCI

FeatureBitset is 4 64-bit values in an array. It's better passed by
reference rather than copying it.

I may be adding FeatureBitset as an argument to another function
and noticed this while working on that.




More information about the All-commits mailing list