[PATCH] D107083: [AArch64] Unroll loop with iv of pointer type

JinGu Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 09:13:52 PDT 2021


jaykang10 created this revision.
jaykang10 added reviewers: SjoerdMeijer, sanwou01, dmgreen, fhahn.
Herald added subscribers: danielkiss, zzheng, hiraditya, kristof.beyls.
jaykang10 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

At this moment, AArch64 target does not unrolls loop with IV of pointer type.

Following the comment of @efriedma on https://bugs.llvm.org/show_bug.cgi?id=51178, we need to enable `UP.Runtime` and `UP.Force` in order to unroll the loop.

This patch enables these unroll preference options universally for AArch64 target.


https://reviews.llvm.org/D107083

Files:
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/test/Transforms/LoopUnroll/AArch64/full-unroll-trip-count-upper-bound.ll
  llvm/test/Transforms/LoopUnroll/AArch64/runtime-unroll-generic.ll
  llvm/test/Transforms/LoopUnroll/AArch64/unroll-loop-with-pointer-type-iv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107083.362803.patch
Type: text/x-patch
Size: 14182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/a27620b5/attachment.bin>


More information about the llvm-commits mailing list