[PATCH] D113798: Add loop unrolling and peeling preferences for RISCV

Michael Berg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 12 12:46:50 PST 2021


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

Both these preference helper functions have initial support with this change. The loop unrolling preferences are set with initial settings to control thresholds, size and attributes of loops to unroll with some tuning done.  The peeling preferences may need some tuning as well as the initial support looks much like what other architectures utilize.  An unrolling test is added for RISCV as well to track how preferences modify/control loop unrolling.


https://reviews.llvm.org/D113798

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
  llvm/test/CodeGen/RISCV/unroll.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113798.386925.patch
Type: text/x-patch
Size: 18389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211112/bbc600d6/attachment-0001.bin>


More information about the llvm-commits mailing list