[PATCH] D130895: Make VL choosing for a splat constant based on its users

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 05:27:52 PDT 2022


asi-sc updated this revision to Diff 458148.
asi-sc added a comment.

Make VL choosing for a splat-like VMV based on its users

                                                               

In some cases VL of VMV/VFMV instructions exceeds required value, e.g. when we
convert SPLAT_VECTOR to vector move. It may cause insertion of extra/too wide
vsetvli instructions. We can look for common VL of the users to choose the
optimal VL value.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130895

Files:
  llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
  llvm/test/CodeGen/RISCV/rvv/pr55615.ll
  llvm/test/CodeGen/RISCV/rvv/setcc-fp-vp.ll
  llvm/test/CodeGen/RISCV/rvv/setcc-int-vp.ll
  llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll
  llvm/test/CodeGen/RISCV/rvv/vrgatherei16-subreg-liveness.ll
  llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
  llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130895.458148.patch
Type: text/x-patch
Size: 48204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220906/c18007ea/attachment.bin>


More information about the llvm-commits mailing list