[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
Thu Jul 20 04:51:42 PDT 2023


luke updated this revision to Diff 542427.
luke added a comment.

Use a ComplexPattern to work around type inference, and use PatFrags to merge the zext and sext patterns together


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D155698

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
  llvm/test/CodeGen/RISCV/rvv/ctlz-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/cttz-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vnsra-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vnsrl-sdnode.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155698.542427.patch
Type: text/x-patch
Size: 45178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230720/4a4e002f/attachment.bin>


More information about the llvm-commits mailing list