Lines Matching refs:NewInst
102 /// For example, if \p OrigInst is defined in "else_bb" and \p NewInst is
108 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst,
120 Phi->addIncoming(NewInst, NewInst->getParent());
303 CallBase *NewInst = cast<CallBase>(OrigInst->clone());
304 NewInst->insertBefore(ThenTerm);
307 Value *NewRetVal = NewInst;
313 NewBitCast->replaceUsesOfWith(OrigInst, NewInst);
331 return *NewInst;
348 CallBase *NewInst = cast<CallBase>(OrigInst->clone());
350 NewInst->insertBefore(ThenTerm);
356 auto *NewInvoke = cast<InvokeInst>(NewInst);
378 createRetPHINode(OrigInst, NewInst, MergeBlock, Builder);
380 return *NewInst;
554 // callee, 'NewInst' will be executed, otherwise the original call site will
556 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights);
558 // Promote 'NewInst' so that it directly calls the desired function.
559 return promoteCall(NewInst, Callee);