[all-commits] [llvm/llvm-project] 097181: [RISCV] Don't lookup TII in RISCVInstrInfo::getVLE...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue May 3 19:41:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 097181974067ff9372faccfd419a51f9ba662443
      https://github.com/llvm/llvm-project/commit/097181974067ff9372faccfd419a51f9ba662443
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-03 (Tue, 03 May 2022)

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

  Log Message:
  -----------
  [RISCV] Don't lookup TII in RISCVInstrInfo::getVLENFactoredAmount. NFCI

We're already inside of our implementation of TII.


  Commit: 9cce9a126cca662316e650f9111fc715dc3e0351
      https://github.com/llvm/llvm-project/commit/9cce9a126cca662316e650f9111fc715dc3e0351
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-03 (Tue, 03 May 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/test/CodeGen/RISCV/rvv/allocate-lmul-2-4-8.ll

  Log Message:
  -----------
  [RISCV] Make use of SHXADD instructions in RVV spill/reload code.

We can use SH1ADD, SH2ADD, SH3ADD to multipy by 3, 5, and 9 respectively.

We could extend this to 3, 5, or 9 multiplied by a power 2 by also
emitting a SLLI.

Reviewed By: reames

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


Compare: https://github.com/llvm/llvm-project/compare/60957a5a08a5...9cce9a126cca


More information about the All-commits mailing list