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

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 12:09:46 PDT 2016


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/1f7047fe/attachment.html>


More information about the llvm-commits mailing list