[LLVMdev] Disappearing Machine Basic Blocks (for new instruction)

Edward Lee edilee at gmail.com
Sun Sep 21 16:46:56 PDT 2008


On Fri, Sep 19, 2008 at 7:11 PM, Evan Cheng <evan.cheng at apple.com> wrote:
> please figure out which pass deleted the block
It seems like it was MachineBasicBlock::CorrectExtraCFGEdges that
eventually removed the successor link, and that method was
conditionally called after checking X86InstrInfo::AnalyzeBranch in the
branch folder.

Setting my instruction to be branch-like in X86InstrInfo.td makes the
2 target blocks stay around.

Ed



More information about the llvm-dev mailing list