<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 4:54 PM, Cong Hou <span dir="ltr"><<a href="mailto:congh@google.com" target="_blank">congh@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">congh added inline comments.<br>
<span class=""><br>
================<br>
Comment at: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:1312<br>
@@ -1311,3 +1311,3 @@<br>
     UnwindDest.first->setIsEHPad();<br>
-    addSuccessorWithWeight(FuncInfo.MBB, UnwindDest.first, UnwindDest.second);<br>
+    addSuccessorWithProb(FuncInfo.MBB, UnwindDest.first, UnwindDest.second);<br>
   }<br>
----------------<br>
</span><span class="">davidxl wrote:<br>
> Let's add a TODO here for a follow up. In follow up, find a way to assert the violations and examine the root cause<br>
</span>OK. But why here? It is a specific place and the follow up is fixing a more general problem. After the whole patch is checked in, I will work on how to validate the successors' probabilities.<br></blockquote><div><br></div><div>SGTM.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
It this patch ready? I will update the test cases.<br>
<br></blockquote><div><br></div><div>Please update test cases and we can take a look.</div><div><br></div><div>David</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="http://reviews.llvm.org/D14361" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14361</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>