[all-commits] [llvm/llvm-project] 839a46: [RISCV] Use selectImm for RV32. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Mar 23 08:58:04 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 839a46d88fc31bbdf18f1525973b08be017b3355
      https://github.com/llvm/llvm-project/commit/839a46d88fc31bbdf18f1525973b08be017b3355
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

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

  Log Message:
  -----------
  [RISCV] Use selectImm for RV32. NFC

Previously we used selectImm for RV64 and isel patterns for
RV32. This should be NFC, but will allow RV32 and RV64 to share
improvements in the future. For example, it might be useful to
use BSETI from Zbs to make single bit constants.

Reviewed By: luismarques

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




More information about the All-commits mailing list