<div dir="ltr">Thanks, nick. I think I found my problem, <div><br></div><div><span style="font-size:14px">LIS->insertMBBInMaps(B) already takes care of adding the block into slotIndexes so I don't have to cal<font color="#444444">l </font></span></div><div><font color="#444444"><span style="font-size:14px">LIS->getSlotIndexes()-></span><span style="font-size:14px">insertMBBInMaps(B) again.</span></font><br></div><div><font color="#444444"><span style="font-size:14px"><br></span></font></div><div><font color="#444444"><span style="font-size:14px">Now I'm trying to figure out how to correctly update the LiveIntervals ...</span></font></div><div><font color="#444444"><span style="font-size:14px"><br></span></font></div><div><font color="#444444"><span style="font-size:14px">Can someone briefly introduce what MachineBasicBlock::SplitCriticalEdge() function does, it looks very like what I'm trying to do ...</span></font></div><div><font color="#444444"><span style="font-size:14px"><br></span></font></div><div><font color="#444444"><span style="font-size:14px">Thanks </span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-17 23:33 GMT-04:00 via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ZH-TW" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">To insert block B after block A,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">MachineFunction::iterator MBBI = A;</span></p>
<p class="MsoNormal"><span lang="EN-US">MF.insert(MBBI, B)</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div style="background-color:#d5eaff;border:1px dotted #003333;padding:.8em"><span style="font-size:12pt;font-family:'Cambria','times new roman','garamond',serif;color:#ff0000">CONFIDENTIALITY NOTICE:</span><br>
<p style="font-size:11pt;line-height:10pt;font-family:'Cambria','times roman',serif">
This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the
information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation.
</p>
<span style="font-size:12pt;font-family:'Cambria','times new roman','garamond',serif;color:#ff0000">Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.</span><br>
</div>
</div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>