[PATCH] D62989: [Unroll] Do NOT unroll a loop with small runtime upperbound
Z. Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 16:59:11 PDT 2019
zzheng added a comment.
> Wouldn't I want to (fully) unroll loops especially those with low trip count to reduce overhead/enable further optimizations?
>
> Do you have performance/code size numbers?
The overhead of loop exit check will not be reduced after full unroll, that the reason computeUnrollCount() chooses not to fully unroll unless it's run MaxOrZero iterations.
``
This loop was found from an internal workload, unrolling it impact performance negatively.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62989/new/
https://reviews.llvm.org/D62989
More information about the llvm-commits
mailing list