[PATCH] D155698: [RISCV] Add patterns for vnsr[a,l].wx where shift amount has different type than vector element
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 19:16:50 PDT 2023
craig.topper 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 {
----------------
luke wrote:
> 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?
I wonder if we've reached the point where we should use a ComplexPattern to look through the extend and find the scalar?
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