[all-commits] [llvm/llvm-project] e69318: [RISCV] Use v(f)slide1down for shuffle+insert idiom

Philip Reames via All-commits all-commits at lists.llvm.org
Wed May 31 07:54:10 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e69318138e6cc88becbb8d095b1d2dcf76ac45e1
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-vslide1down.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vector-shuffle-vslide1up.ll

  Log Message:
  [RISCV] Use v(f)slide1down for shuffle+insert idiom

This is a follow up to D151468 which added the vslide1down case as a sub-case of vslide1down matching. This generalizes that code into generic mask matching - specifically to point out the sub-vector insert restriction in the original patch. Since the matching logic is basically the same, go ahead and support vslide1up at the same time.

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

More information about the All-commits mailing list