Displaying 4 results from an estimated 4 matches for "insersion".
2010 Oct 07
2
[LLVMdev] [LLVMDev] Has anyone written this?
...block->succ_size() == 1 &&
(*block->succ_begin())->pred_size() == 1 ) {
block = *block->succ_begin();
seen[block->getNumber()] = true;
blocks.push_back( block );
}
// TODO:
// For each basic block bb in blocks in order of insersion:
// 1. Remove basic blocks in the block vector from the machine function.
// 2. Remove the jump from the start block if it exists.
// 3. Add the instruction from bb into the start block.
}
Thanks,
Jeff Kunkel
On Wed, Oct 6, 2010 at 7:49 PM, Bob Wilson <bob.wilson...
2010 Oct 06
2
[LLVMdev] [LLVMDev] Has anyone written this?
Has anyone written a pass at the MachineFunction level which combines
machine basic blocks which is guaranteed to be the single predecessor
to another block? Or is there a reason not to combine them?
- Thanks
Jeff Kunkel
2010 Oct 06
0
[LLVMdev] [LLVMDev] Has anyone written this?
On Oct 6, 2010, at 4:31 PM, Jeff Kunkel wrote:
> Has anyone written a pass at the MachineFunction level which combines
> machine basic blocks which is guaranteed to be the single predecessor
> to another block? Or is there a reason not to combine them?
I'm not sure exactly what transformation you're referring to, but BranchFolder::OptimizeBranches does a lot of things like that.
2010 Oct 07
0
[LLVMdev] [LLVMDev] Has anyone written this?
...t;>> block = *block->succ_begin();
>>>> seen[block->getNumber()] = true;
>>>> blocks.push_back( block );
>>>> }
>>>> // TODO:
>>>> // For each basic block bb in blocks in order of insersion:
>>>> // 1. Remove basic blocks in the block vector from the machine function.
>>>> // 2. Remove the jump from the start block if it exists.
>>>> // 3. Add the instruction from bb into the start block.
>>>> }
>>>>...