[all-commits] [llvm/llvm-project] cc3bd4: [RISCV] Support LUI+ADDIW in doPeepholeLoadStoreADDI.

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jun 3 18:07:41 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/fold-addi-loadstore.ll

  Log Message:
  -----------
  [RISCV] Support LUI+ADDIW in doPeepholeLoadStoreADDI.

This fixes an inconsistency between RV32 and RV64. Still considering
trying to do this peephole during isel, but wanted to fix the
inconsistency first.

Reviewed By: reames

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




More information about the All-commits mailing list