[PATCH] D25963: [LoopUnroll] Implement profile-based loop peeling

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 12:39:01 PDT 2016


On Wed, Oct 26, 2016 at 10:08 AM, Gerolf Hoflehner <ghoflehner at apple.com>
wrote:

> Gerolf added a comment.
>
> Hi,
>
> Could you provide more background on this idea?  What is your motivational
> use case? When the trip count is low why optimize?


Low trip count loop can be hot too.

David



> If the profile is wrong and it actually is a hot loop for a
> regular/different input set peeling could hurt. There are also side effects
> on code size, register pressure etc. that could hurt performance.
>
> Thanks
> Gerolf
>
>
> https://reviews.llvm.org/D25963
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/c58ed54a/attachment.html>


More information about the llvm-commits mailing list