Home | History | Annotate | Download | only in Scalar

Lines Matching refs:CurInst

2236       Instruction *CurInst = BI++;
2238 if (isa<AllocaInst>(CurInst) ||
2239 isa<TerminatorInst>(CurInst) || isa<PHINode>(CurInst) ||
2240 CurInst->getType()->isVoidTy() ||
2241 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() ||
2242 isa<DbgInfoIntrinsic>(CurInst))
2246 if (CallInst *CallI = dyn_cast<CallInst>(CurInst))
2250 uint32_t ValNo = VN.lookup(CurInst);
2281 } else if (predV == CurInst) {
2312 Instruction *PREInstr = CurInst->clone();
2314 for (unsigned i = 0, e = CurInst->getNumOperands(); i != e; ++i) {
2337 PREInstr->setName(CurInst->getName() + ".pre");
2338 PREInstr->setDebugLoc(CurInst->getDebugLoc());
2348 PHINode* Phi = PHINode::Create(CurInst->getType(), std::distance(PB, PE),
2349 CurInst->getName() + ".pre-phi",
2358 Phi->setDebugLoc(CurInst->getDebugLoc());
2359 CurInst->replaceAllUsesWith(Phi);
2373 VN.erase(CurInst);
2374 removeFromLeaderTable(ValNo, CurInst, CurrentBlock);
2376 DEBUG(dbgs() << "GVN PRE removed: " << *CurInst << '\n');
2377 if (MD) MD->removeInstruction(CurInst);
2378 CurInst->eraseFromParent();
2379 DEBUG(verifyRemoved(CurInst));