[all-commits] [llvm/llvm-project] 4191de: [RISCV] Don't emit LUI/ADDI MachineSDNodes from ge...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jun 16 15:04:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4191de262f19a65e3e5690f9780753f26fc649c9
      https://github.com/llvm/llvm-project/commit/4191de262f19a65e3e5690f9780753f26fc649c9
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

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

  Log Message:
  -----------
  [RISCV] Don't emit LUI/ADDI MachineSDNodes from getAddr

Instead add RISCVISD opcodes that will be selected to LUI/ADDI
during isel.

I'm looking into maybe moving doPeepholeLoadStoreADDI into isel.
Having the ADDI as a RISCVISD node will make it visible to isel.

Reviewed By: reames

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




More information about the All-commits mailing list