[all-commits] [llvm/llvm-project] 4fe5ab: [RISCV] Optimize immediate materialisation with SH...

Ben Shi via All-commits all-commits at lists.llvm.org
Thu Oct 14 23:49:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fe5ab4b00b211cab1be36845965cf2aded5472d
      https://github.com/llvm/llvm-project/commit/4fe5ab4b00b211cab1be36845965cf2aded5472d
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2021-10-15 (Fri, 15 Oct 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/test/CodeGen/RISCV/imm.ll
    M llvm/test/MC/RISCV/rv64zba-aliases-valid.s

  Log Message:
  -----------
  [RISCV] Optimize immediate materialisation with SH*ADD

Use SH1ADD/SH2ADD/SH3ADD along with LUI+ADDI to compose int32*3,
int32*5 and int32*9.

Reviewed By: craig.topper, luismarques

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




More information about the All-commits mailing list