search for: preheaderinsts

Displaying 1 result from an estimated 1 matches for "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 f...