[PATCH] D131551: [RISCV] Fold scalable binary integer vector op and vector select op to RVV VL Op.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 21 01:03:28 PDT 2022


jacquesguan updated this revision to Diff 461806.
jacquesguan added a comment.
Herald added a subscriber: ecnelises.

Use RISCVTargetLowering::shouldFoldSelectWithIdentityConstant to make it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131551

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/rvv/vadd-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vand-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vdiv-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vdivu-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vmul-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vor-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vshl-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vsra-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vsrl-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vsub-sdnode.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131551.461806.patch
Type: text/x-patch
Size: 21871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220921/25bfff5f/attachment.bin>


More information about the llvm-commits mailing list