[LLVMdev] hi, Hi, (Preccessors' Number) < MachineBasicBlock's Number < (Successors's Number), Is it really?

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Dec 4 09:50:41 PST 2009


On Dec 3, 2009, at 9:52 PM, 任坤 wrote:

> I am travelling CFG with MachineFunction. So I want to sure it.
> (Preccessors' Number) < MachineBasicBlock's Number < (Successors's Number), Is it really?

If the CFG contains loops, how could this be possible?

Anyway, no you can't use MBB numbers for that. Perhaps you need the MachineDominatorTree analysis?

Regards,
/jakob





More information about the llvm-dev mailing list