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

Anton Korobeynikov anton at korobeynikov.info
Tue Jan 24 08:34:28 PST 2012


> 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.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list