[all-commits] [llvm/llvm-project] 25e433: [RISCV] Lower shuffle which splats a single span (...

Philip Reames via All-commits all-commits at lists.llvm.org
Fri Feb 14 17:09:50 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25e43334a86804c77d460493e37b57274257461a
      https://github.com/llvm/llvm-project/commit/25e43334a86804c77d460493e37b57274257461a
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2025-02-14 (Fri, 14 Feb 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll

  Log Message:
  -----------
  [RISCV] Lower shuffle which splats a single span (without exact VLEN) (#127108)

If we have a shuffle which repeats the same pattern of elements, all of
which come from the first register in the source register group, we can
lower this to a single vrgather at m1 to perform the element
rearrangement, and reuse that for each register in the result vector
register group.



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