Home | History | Annotate | Download | only in Scalar

Lines Matching refs:CurInst

2452       Instruction *CurInst = BI++;
2454 if (isa<AllocaInst>(CurInst) ||
2455 isa<TerminatorInst>(CurInst) || isa<PHINode>(CurInst) ||
2456 CurInst->getType()->isVoidTy() ||
2457 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() ||
2458 isa<DbgInfoIntrinsic>(CurInst))
2465 if (isa<CmpInst>(CurInst))
2469 if (CallInst *CallI = dyn_cast<CallInst>(CurInst))
2473 uint32_t ValNo = VN.lookup(CurInst);
2505 } else if (predV == CurInst) {
2506 /* CurInst dominates this predecessor. */
2538 Instruction *PREInstr = CurInst->clone();
2540 for (unsigned i = 0, e = CurInst->getNumOperands(); i != e; ++i) {
2563 PREInstr->setName(CurInst->getName() + ".pre");
2564 PREInstr->setDebugLoc(CurInst->getDebugLoc());
2572 PHINode* Phi = PHINode::Create(CurInst->getType(), predMap.size(),
2573 CurInst->getName() + ".pre-phi",
2584 Phi->setDebugLoc(CurInst->getDebugLoc());
2585 CurInst->replaceAllUsesWith(Phi);
2599 VN.erase(CurInst);
2600 removeFromLeaderTable(ValNo, CurInst, CurrentBlock);
2602 DEBUG(dbgs() << "GVN PRE removed: " << *CurInst << '\n');
2603 if (MD) MD->removeInstruction(CurInst);
2604 DEBUG(verifyRemoved(CurInst));
2605 CurInst->eraseFromParent();