[all-commits] [llvm/llvm-project] 4541e2: [RISCV][P-ext] Select plui.h/w and improve usage o...

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


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoP.td
    M llvm/test/CodeGen/RISCV/rvp-ext-rv32.ll
    M llvm/test/CodeGen/RISCV/rvp-ext-rv64.ll

  Log Message:
  -----------
  [RISCV][P-ext] Select plui.h/w and improve usage of pli.b/h/w. (#184937)

This patch adds custom instruction selection of splat_vector of
constants. Rather that using the element size from the VT, find
the smallest splat size in the constant. This allow us to use
pli.b for i16 or i32 elements that contain a byte splat.



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