Lines Matching refs:OldTI
398 const TerminatorInst *OldTI = BB->getTerminator(); in CloneBlock() local
402 = Director->handleInstruction(VMap, OldTI, NewBB); in CloneBlock()
420 if (const BranchInst *BI = dyn_cast<BranchInst>(OldTI)) { in CloneBlock()
433 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock()
438 } else if (const SwitchInst *SI = dyn_cast<SwitchInst>(OldTI)) { in CloneBlock()
448 VMap[OldTI] = BranchInst::Create(Dest, NewBB); in CloneBlock()
455 Instruction *NewInst = OldTI->clone(); in CloneBlock()
456 if (OldTI->hasName()) in CloneBlock()
457 NewInst->setName(OldTI->getName()+NameSuffix); in CloneBlock()
459 VMap[OldTI] = NewInst; // Add instruction map to value. in CloneBlock()
462 if (auto CS = ImmutableCallSite(OldTI)) in CloneBlock()