On restricting predecessors of basic blocks

Hi,

I plan to implement an algorithm which requires BasicBlocks to have at most two predecessors. simplifycfg pass is not a choice since it doesn’t do what I want, going by its description.

Could someone point me to an existing pass which does this job?

Thanks,

Dear Rekha,

I don't think LLVM has a pass that does this. If you need such a pass, I think you will need to write it yourself.

Regards,

John Criswell

Ok.

Thanks for the confirmation.

Rekha