[all-commits] [llvm/llvm-project] dbc3df: [RISCV] Remove unnecessary call to MachineFunction...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jul 16 15:40:03 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dbc3df17180782006be0ad6e43d3da81d98c2d4d
      https://github.com/llvm/llvm-project/commit/dbc3df17180782006be0ad6e43d3da81d98c2d4d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-07-16 (Tue, 16 Jul 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

  Log Message:
  -----------
  [RISCV] Remove unnecessary call to MachineFunction::getSubtarget. NFC

RISCVInstrInfo already caches a reference to the subtarget object
that owns it. We can use that.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list