<div dir="ltr"><div>We already have a heuristic that unwind edges are infrequently taken, but it sounds like the inliner isn't taking this into account. Maybe the new pass manager can fix this, given that it's supposed to enable access to branch profiles.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 1:58 PM, Vadim Chugunov <span dir="ltr"><<a href="mailto:vadimcn@gmail.com" target="_blank">vadimcn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi,<br></div>I am seeing that LLVM optimizer often inlines functions called from landing pads.<br></div>- Is this expected?   I thought that landing pads were always considered to be on the "cold" path...<br></div>- Is there any way to discourage inlining in landing pads and optimize them for size?<br><br></div><div>thanks!<br><br></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>