Home | History | Annotate | Download | only in Scalar

Lines Matching refs:New

140 FunctionPass *llvm::createJumpThreadingPass() { return new JumpThreading(); }
934 LoadInst *NewVal = new LoadInst(LoadedPtr, LI->getName()+".pr", false,
952 // Insert new entries into the PHI for each predecessor. A single block may
1277 /// AddPHINodeEntriesForMappedBlock - We're adding 'NewPred' as a new
1349 // We are going to have to map operands from the original BB block to the new
1366 Instruction *New = BI->clone();
1367 New->setName(BI->getName());
1368 NewBB->getInstList().push_back(New);
1369 ValueMapping[BI] = New;
1372 for (unsigned i = 0, e = New->getNumOperands(); i != e; ++i)
1373 if (Instruction *Inst = dyn_cast<Instruction>(New->getOperand(i))) {
1376 New->setOperand(i, I->second);
1440 // over the new instructions and zap any that are constants or dead. This
1493 // can just clone the bits from BB into the end of the new PredBB.
1512 Instruction *New = BI->clone();
1515 for (unsigned i = 0, e = New->getNumOperands(); i != e; ++i)
1516 if (Instruction *Inst = dyn_cast<Instruction>(New->getOperand(i))) {
1519 New->setOperand(i, I->second);
1525 if (Value *IV = SimplifyInstruction(New, TD)) {
1526 delete New;
1529 // Otherwise, insert the new instruction into the block.
1530 New->setName(BI->getName());
1531 PredBB->getInstList().insert(OldPredBranch, New);
1532 ValueMapping[BI] = New;