[all-commits] [llvm/llvm-project] e9311f: [RISCV] Separate single source and dual source low...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Jan 24 09:17:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9311f9c5acd3d9f282c351721bb911e5b519531
      https://github.com/llvm/llvm-project/commit/e9311f9c5acd3d9f282c351721bb911e5b519531
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2024-01-24 (Wed, 24 Jan 2024)

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

  Log Message:
  -----------
  [RISCV] Separate single source and dual source lowering code [nfc]

The two single source cases aren't effected by the swap or select matching
as those are dual operand specific.  Similarly, a two source shuffle can't
be a rotate.

We can extend this idea for some of the shuffle types above, but some of
them are validly either single or dual source.  We don't want to loose that
and the code complexity of versioning early and having to repeat some shuffle
kinds doesn't (currently) seem worth it.




More information about the All-commits mailing list