[all-commits] [llvm/llvm-project] 4045b6: [RISCV] Add macrofusion infrastructure and one exa...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jun 23 08:40:39 PDT 2022

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

  Changed paths:
    M llvm/lib/Target/RISCV/CMakeLists.txt
    M llvm/lib/Target/RISCV/RISCV.td
    A llvm/lib/Target/RISCV/RISCVMacroFusion.cpp
    A llvm/lib/Target/RISCV/RISCVMacroFusion.h
    M llvm/lib/Target/RISCV/RISCVSubtarget.cpp
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
    A llvm/test/CodeGen/RISCV/macro-fusion-lui-addi.ll

  Log Message:
  [RISCV] Add macrofusion infrastructure and one example usage.

This adds the macrofusion plumbing and support fusing LUI+ADDI(W).

This is similar to D73643, but handles a different case. Other cases
can be added in the future.

Reviewed By: reames

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

More information about the All-commits mailing list