<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi Aries.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thanks very much!</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Precisely this is the situation! There're two consecutive branches (br1cond and br2uncond). Inside of AnalyzeBranch, there's an opcode swap of br2uncond (ex. j_foward to j_backward). There I do BuildMI (newOpcode) and
followed by br2uncond->eraseFromParent(). This results in br1cond loosing it's label/offset. How could I resolve this?</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Best regards,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Girish.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px; "><div style="font-family: 'times new roman', 'new york', times, serif; "><div style="font-family: 'times new roman', 'new york', times, serif; "><div id="yiv97653404" style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">May be you have
branched to a BB which has been deleted.<br><br><div class="yiv97653404gmail_quote">On 24 January 2012 20:16, girish gulawani <span dir="ltr"><<a rel="nofollow" ymailto="mailto:girishvg@yahoo.com" target="_blank" href="mailto:girishvg@yahoo.com">girishvg@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv97653404gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size:12pt;">
<span><br></span></div><div style="font-size:12pt;">Hello All.</div><div style="font-size:12pt;">
On a particular target the back-end generates an instruction like:</div><div style="font-size:12pt;"><span style="white-space:pre-wrap;"> </span>beqz r2, "$BB0_-1"<br>
</div><div style="font-size:12pt;"> </div><div style="font-size:12pt;">Is it a back-end specific issue? Could someone please help me figure
out how this gets resolved? What confuses me is, a<span style="font-size:12pt;">ll other branches are correctly labelled and resolved! </span></div><div style="font-size:12pt;">
<span style="font-size:12pt;"><br></span></div><div style="font-size:12pt;"><span style="font-size:12pt;">Thanks.</span></div><span class="yiv97653404HOEnZb"><font color="#888888"><div style="font-size:12pt;">
<span style="font-size:12pt;">Girish.</span></div><div style="font-size:12pt;"><br></div></font></span></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a rel="nofollow" ymailto="mailto:LLVMdev@cs.uiuc.edu" target="_blank" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a rel="nofollow" target="_blank" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br>
<a rel="nofollow" target="_blank" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br><br>Aries Wu<br><br>
</div><br><br> </div> </div> </blockquote></div> </div></body></html>