<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:small;color:#000000"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 19, 2021 at 9:30 PM Dávid Bolvanský via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">xbolva00 added a comment.<br>
<br>
What about C-ray? Does function specialization help?<br>
<br>
Anyway, it would be good to teach inliner to inline that one important function in c-ray benchmark. gcc has some heuristic that it looks “if we inline this function into loop, does something becomes loop invariant - if yes, inline!”<br>
<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">LLVM currently does not analyze benefits created by inlining in the caller context yet (it only looks at savings in the callee with call context propagated). It is some area to be improved upon.</div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">David</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D93838/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D93838/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D93838" rel="noreferrer" target="_blank">https://reviews.llvm.org/D93838</a><br>
<br>
</blockquote></div></div>