[PATCH] D156249: [RISCV] Implement getOptimalMemOpType for memcpy/memset lowering

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 09:56:42 PDT 2023


reames updated this revision to Diff 544411.
reames added a comment.

Changes:

- Restrict to LMUL1 - This causes a minor regression in bzero lowering due to a store merge limitation I will address separately.
- Handle NoImplicitFloat like other targets.
- Use the largest type allowed by alignment.
- Use ELEN not XLEN for deciding preferred element size.  Most of our rv32+vector configurations support e64 and we can exploit that.


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

https://reviews.llvm.org/D156249

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/rvv/memcpy-inline.ll
  llvm/test/CodeGen/RISCV/rvv/memset-inline.ll
  llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll
  llvm/test/CodeGen/RISCV/rvv/wrong-chain-fixed-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156249.544411.patch
Type: text/x-patch
Size: 67178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/3d7ade21/attachment.bin>


More information about the llvm-commits mailing list