Lines Matching refs:NewInst
221 Instruction *NewInst = Inst->clone(); in copyInstScalar() local
229 assert(!isa<StoreInst>(NewInst) && in copyInstScalar()
231 NewInst->deleteValue(); in copyInstScalar()
235 NewInst->replaceUsesOfWith(OldOperand, NewOperand); in copyInstScalar()
238 Builder.Insert(NewInst); in copyInstScalar()
239 BBMap[Inst] = NewInst; in copyInstScalar()
247 if (NewInst->getModule() != Inst->getModule()) in copyInstScalar()
248 NewInst->setDebugLoc(llvm::DebugLoc()); in copyInstScalar()
250 if (!NewInst->getType()->isVoidTy()) in copyInstScalar()
251 NewInst->setName("p_" + Inst->getName()); in copyInstScalar()
401 Instruction *NewInst = &*I; in removeDeadInstructions() local
403 if (!isInstructionTriviallyDead(NewInst)) in removeDeadInstructions()
407 if (Pair.second == NewInst) { in removeDeadInstructions()
411 NewInst->eraseFromParent(); in removeDeadInstructions()
1176 Value *NewInst = Builder.CreateBinOp(Inst->getOpcode(), NewOpZero, NewOpOne, in copyBinaryInst() local
1178 VectorMap[Inst] = NewInst; in copyBinaryInst()