[PATCH] D22778: Add Loop Sink pass to reverse the LICM based of basic block frequency.

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 12:43:32 PDT 2016


Dehao explained to me the scenario is for hot uses in nested loops which of
course can have dominating block that is colder. I was assuming loops
without nested loops.

David

On Mon, Oct 17, 2016 at 12:09 PM, Daniel Berlin <dberlin at dberlin.org> wrote:

> This should be pretty easy:
>
> for loop:
>   if (g) {
>     if (a) {
>       c = b;
>   }
>    use c
>   }
>  }
>
>
> (there will be Phi nodes, obviously, to make this work).
>
>
> On Mon, Oct 17, 2016 at 11:49 AM, David Li <davidxl at google.com> wrote:
>
>> davidxl added a comment.
>>
>> Example of parent BB being colder than the use BB?
>>
>>
>> https://reviews.llvm.org/D22778
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161017/7ef397f8/attachment.html>


More information about the llvm-commits mailing list