Displaying 6 results from an estimated 6 matches for "bb0_".
Did you mean:
bb0
2012 Jan 24
2
[LLVMdev] Resolving branch instr with label "$BB0_-1"
Hello All.
On a particular target the back-end generates an instruction like:
beqz r2, "$BB0_-1"
Is it a back-end specific issue? Could someone please help me figure out how this gets resolved? What confuses me is, all other branches are correctly labelled and resolved!
Thanks.
Girish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists...
2012 Jan 24
0
[LLVMdev] Resolving branch instr with label "$BB0_-1"
May be you have branched to a BB which has been deleted.
On 24 January 2012 20:16, girish gulawani <girishvg at yahoo.com> wrote:
>
> Hello All.
> On a particular target the back-end generates an instruction like:
> beqz r2, "$BB0_-1"
>
> Is it a back-end specific issue? Could someone please help me figure out
> how this gets resolved? What confuses me is, all other branches are
> correctly labelled and resolved!
>
> Thanks.
> Girish.
>
>
> _______________________________________________
>...
2012 Jan 24
2
[LLVMdev] Resolving branch instr with label "$BB0_-1"
...irish.
May be you have branched to a BB which has been deleted.
>
>
>On 24 January 2012 20:16, girish gulawani <girishvg at yahoo.com> wrote:
>
>
>>
>>Hello All.
>>On a particular target the back-end generates an instruction like:
>>beqz r2, "$BB0_-1"
>>
>>
>>Is it a back-end specific issue? Could someone please help me figure out how this gets resolved? What confuses me is, all other branches are correctly labelled and resolved!
>>
>>
>>Thanks.Girish.
>>
>>
>>______________________...
2012 Jan 24
0
[LLVMdev] Resolving branch instr with label "$BB0_-1"
> 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.
2012 Jan 24
0
[LLVMdev] Resolving branch instr with label "$BB0_-1"
>> 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?
Ah sorry, my memory served me
2012 Jan 24
2
[LLVMdev] Resolving branch instr with label "$BB0_-1"
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
>>