[PATCH] D150771: [RISCV] Set Fast flag for unaligned scalar memory accesses

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 05:14:58 PDT 2023

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

The +unaligned-scalar-mem feature was added in
https://reviews.llvm.org/D126085 to allow subtargets to indicate that
they supported misaligned loads/stores with "sufficient" performance.
This is separate from whether or not the target actually supports
misaligned accesses, which could be determined from Zicclsm.

This patch then enables the Fast flag under the assumption that any subtarget
that declares support for +unaligned-scalar-mem will want to opt into
optimisations that take advantrage of misaligned scalar accesses, such as store

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150771.523006.patch
Type: text/x-patch
Size: 14213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230517/730d0aaf/attachment.bin>

More information about the llvm-commits mailing list