Lines Matching defs:CurrentI
392 Instruction *CurrentI = &*I++;
393 if (!CurrentI->use_empty()) {
396 if (isa<PHINode>(CurrentI))
398 PHINode *NewPN = PHINode::Create(CurrentI->getType(), Preds.size());
399 NewPN->setDebugLoc(CurrentI->getDebugLoc());
401 NewPN->addIncoming(Mapping[CurrentI],
402 cast<Instruction>(Mapping[CurrentI])->getParent());
404 CurrentI->replaceAllUsesWith(NewPN);
406 CurrentI->dropDbgRecords();
407 CurrentI->eraseFromParent();
409 if (CurrentI == OriginalBeginInst)