[LLVMdev] Resolving branch instr with label "$BB0_-1"

girish gulawani girishvg at yahoo.com
Tue Jan 24 08:57:29 PST 2012


Hello Anton.
Thanks for the comment.

> 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?
>Your code is broken. AnalyzeBranch should not modify anything.
>
>
>
>I was taking a clue from Mips/MipsInstrInfo.cpp: AnalyzeBranch :(
>Could you please suggest appropriate alternative place for such a modification?
>Best regards,
>
>Girish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120124/0e1db35d/attachment.html>


More information about the llvm-dev mailing list