[LLVMdev] NO-OP

Chris Lattner sabre at nondot.org
Fri Jul 13 10:42:23 PDT 2007


On Fri, 13 Jul 2007, Fernando Magno Quintao Pereira wrote:
>> You can never have an empty basic block. All BBs must have a TerminatorInst.
>>
>
> I've built a pass to split critical edges of machine functions, and I have
> to insert new basic blocks. Some of them will have MBB->begin() ==
> MBB->end().

Ah, machine basic blocks are different.  They *are* allowed to be empty.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list