[PATCH] D134168: [RISCV] Make preferred alignment of PointerArgs for MemIntrinsic

Jiejie Rong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 01:11:11 PDT 2022


JojoR created this revision.
JojoR added reviewers: kito.cheng, craig.topper.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
JojoR requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Set default preferred alignment for MemIntrinsic like memcpy according to arch32 or arch64,
it will improve performance.

e.g. dhrystone with "-O2" boosts performance by 50% on arch RV32.


https://reviews.llvm.org/D134168

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/memcpy-align.ll
  llvm/test/CodeGen/RISCV/memcpy-inline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134168.461153.patch
Type: text/x-patch
Size: 5542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220919/794663ef/attachment.bin>


More information about the llvm-commits mailing list