[LLVMdev] Splitting basic blocks while preserving machine code

Kenneth Uildriks kennethuil at gmail.com
Wed Oct 20 18:18:59 PDT 2010


On Wed, Oct 20, 2010 at 7:35 PM, Trevor Harmon <trevor.w.harmon at nasa.gov> wrote:
> On Oct 20, 2010, at 5:26 PM, Kenneth Uildriks wrote:
>
>> You could always undo the split right before your pass finishes.
>
> How would I undo a split? Perhaps by merging them back using
> llvm::MergeBlockIntoPredecessor?
>
> Trevor

Exactly.  It's for merging two blocks when there is an unconditional
branch between them.



More information about the llvm-dev mailing list