<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr">On Tue, Dec 4, 2012 at 9:41 AM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank" class="cremed">hfinkel@anl.gov</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">----- Original Message -----<br>
> From: "Nadav Rotem" <<a href="mailto:nrotem@apple.com" class="cremed">nrotem@apple.com</a>><br>
> To: <a href="mailto:llvm-commits@cs.uiuc.edu" class="cremed">llvm-commits@cs.uiuc.edu</a><br>
> Sent: Tuesday, December 4, 2012 1:11:52 AM<br>
> Subject: [llvm-commits] [llvm] r169223 -      /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp<br>
><br>
> Author: nadav<br>
> Date: Tue Dec  4 01:11:52 2012<br>
> New Revision: 169223<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=169223&view=rev" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project?rev=169223&view=rev</a><br>
> Log:<br>
> Give scalar if-converted blocks half the score because they are not<br>
> always executed due to CF.<br>
<br>
</div>Should we make use of branch weights here? If nothing else, LowerExpectIntrinsic transforms uses of __builtin_expect into branch weights.<br></blockquote><div><br></div><div style>Yes, but through BranchProbabilityInfo (or BlockFrequencyInfo, which ever is more appropriate). if-conversion was a primary intended consumer for branch probabilities in the new design.</div>
</div></div></div></div>