mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
this works with backedges to the existing entry block alot better
llvm-svn: 24270
This commit is contained in:
parent
fb7763398b
commit
b4169fe539
@ -46,8 +46,9 @@ namespace {
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
if (!F.isExternal()) {
|
||||
//give us a clean block
|
||||
BasicBlock& bbhead = F.getEntryBlock();
|
||||
bbhead.splitBasicBlock(bbhead.begin());
|
||||
BasicBlock* bbold = &F.getEntryBlock();
|
||||
BasicBlock* bbnew = new BasicBlock("allocablock", &F, &F.getEntryBlock());
|
||||
new BranchInst(bbold, bbnew);
|
||||
|
||||
//find the instructions
|
||||
std::list<Instruction*> worklist;
|
||||
|
Loading…
Reference in New Issue
Block a user