[all-commits] [llvm/llvm-project] b81b4c: [RISCV][NFC] Add RISCVSubtarget field to RISCVExpa...

Alex Bradbury via All-commits all-commits at lists.llvm.org
Fri Jul 21 08:50:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b81b4cfc654784f19af7296f01719630ea24fc89
      https://github.com/llvm/llvm-project/commit/b81b4cfc654784f19af7296f01719630ea24fc89
  Author: Alex Bradbury <asb at igalia.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

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

  Log Message:
  -----------
  [RISCV][NFC] Add RISCVSubtarget field to RISCVExpandPseudo and RISCVPreRAExpandPseudo

To my eye, it's cleaner to just get hold of STI in runOnMachineFunction
(as we do already for InstrInfo) and then accessing the field as needed
rather than to have repeated lookup code in the member functions or
helpers that need it.

Differential Revision: https://reviews.llvm.org/D155840




More information about the All-commits mailing list