<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 8:44 PM, Xinliang David Li <span dir="ltr"><<a href="mailto:davidxl@google.com" class="m_4789601870307747161cremed cremed" target="_blank">davidxl@google.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"><br><div class="gmail_extra"><div class="gmail_quote"><div><div class="m_4789601870307747161h5"><div><br></div></div></div><div>I don't understand the reply. The early check I suggested is basically:</div><div><br></div><div>if ( AdjustedSumProb - PProb > PProb)</div><div>   return false;</div><div><br></div></div></div></div></blockquote><div><br></div><div>The simple shortcut isn't correct. I made the loop look at the CFG-breaking tail-duplication candidates in a separate loop afterword.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>David</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
<a href="https://reviews.llvm.org/D28583" rel="noreferrer" class="m_4789601870307747161cremed cremed" target="_blank">https://reviews.llvm.org/D2858<wbr>3</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>