<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 10:55 AM, Nat! via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="cremed">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">If I read the llvm language correctly, it doesn't have a way to specify the preferred branch, correct ? I see nothing in the specs for "branch" or "switch". And __buildin_expect does nothing, that I am sure of.<br>
<br></blockquote><div><br></div><div>Well, you could generate a !prof annotation to specify branch weights that are then used when computing branch probability and block frequencies (<a href="http://llvm.org/docs/BranchWeightMetadata.html">http://llvm.org/docs/BranchWeightMetadata.html</a>)</div><div><br></div><div>Diego.</div></div></div></div>