Displaying 1 result from an estimated 1 matches for "preheaderinst".
Did you mean:
preheaderinsts
2004 May 02
1
[LLVMdev] hoisting problem.
...n of that block (which is a branch)
Instruction* I2 = I->clone();
I2->setName("Billy");
I->replaceAllUsesWith(I2);
I->getParent()->getInstList().remove(I);
//we want to insert before the
//branch at the end
iplist<Instruction> preheaderInsts =
L->getLoopPreheader()->getInstList();
iplist<Instruction>::iterator i = preheaderInsts.end();
i--;
preheaderInsts.insert(i, I2);
//I->getParent()->getInstList().remove(I);
DEBUG(std::cerr << "HOIST: DONE\n");
return...