[all-commits] [llvm/llvm-project] add7b7: [RISCV] Add RISCVISD opcodes for PSHL/PSRL/PSRA an...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Mar 5 12:42:06 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: add7b711de03b3cf2b98cb1f33aca6138de8f379
      https://github.com/llvm/llvm-project/commit/add7b711de03b3cf2b98cb1f33aca6138de8f379
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

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

  Log Message:
  -----------
  [RISCV] Add RISCVISD opcodes for PSHL/PSRL/PSRA and lower to them. (#184836)

We only support splat shift amounts. Previously we checked if the shift
amount was a splat_vector and considered it legal.

I don't think there is a guarantee that the splat_vector will stick
around as a splat_vector. It's safer if we capture the splat and create
a dedicated node with a scalar shift amount.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list