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

JinGu Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 19 04:33:49 PDT 2021


jaykang10 added a subscriber: eli.friedman.
jaykang10 added a comment.

In D107083#2914660 <https://reviews.llvm.org/D107083#2914660>, @efriedma wrote:

> Fundamentally, the issue with forced unrolling is that it increases codesize without actually reducing the number of operations we execute per iteration.  If there's a significant reduction to the number of operations per iteration here because we can take advantage of addressing modes, then that might be worthwhile.  But we need to be careful with the cost modeling.
>
> You might want to look at ARMTTIImpl for ideas.

@eli.friedman Thanks for your comment. It is helpful.

um... It looks other optimization passes remove the opportunity for addressing mode from unrolling... Maybe, I need to find another way...


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

https://reviews.llvm.org/D107083



More information about the llvm-commits mailing list