[all-commits] [llvm/llvm-project] 44cc5a: [RISCV] Custom lower fshl/fshr with Zbt extension.

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jan 31 17:59:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44cc5abbf9166c47a1da7027123b13d230442610
      https://github.com/llvm/llvm-project/commit/44cc5abbf9166c47a1da7027123b13d230442610
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-01-31 (Sun, 31 Jan 2021)

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

  Log Message:
  -----------
  [RISCV] Custom lower fshl/fshr with Zbt extension.

We need to add a mask to the shift amount for these operations
to use the FSR/FSL instructions. We were previously doing this
in isel patterns, but custom lowering will make the mask
visible to optimizations earlier.




More information about the All-commits mailing list