[PATCH] D155698: [RISCV] Add patterns for vnsr[a,l].wx where shift amount has different type than vector element

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 06:26:45 PDT 2023


luke added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td:1436
+      // Match scalar splats of any smaller element size that have been extended
+      defvar SmallerScalars = !filter(vt, [i8, i16, i32, i64], !le(vt.Size, vti.Vector.ElementType.Size));
+      foreach Scalar = SmallerScalars in {
----------------
Iterating over this fixed list of scalars is a bit hairy. Are there any other ways that we can get a list of vectors with the same length but different element type?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155698/new/

https://reviews.llvm.org/D155698



More information about the llvm-commits mailing list