Lines Matching refs:CurInst
2462 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument
2463 if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() || in performScalarPRE()
2464 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE()
2465 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE()
2466 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE()
2473 if (isa<CmpInst>(CurInst)) in performScalarPRE()
2483 if (isa<GetElementPtrInst>(CurInst)) in performScalarPRE()
2486 if (auto *CallB = dyn_cast<CallBase>(CurInst)) { in performScalarPRE()
2495 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE()
2506 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE()
2526 llvm::any_of(CurInst->operands(), [&](const Use &U) { in performScalarPRE()
2541 } else if (predV == CurInst) { in performScalarPRE()
2562 if (!isSafeToSpeculativelyExecute(CurInst)) { in performScalarPRE()
2567 if (ICF->isDominatedByICFIFromSameBlock(CurInst)) in performScalarPRE()
2589 PREInstr = CurInst->clone(); in performScalarPRE()
2606 PHINode::Create(CurInst->getType(), predMap.size(), in performScalarPRE()
2607 CurInst->getName() + ".pre-phi", &CurrentBlock->front()); in performScalarPRE()
2612 patchReplacementInstruction(CurInst, V); in performScalarPRE()
2623 Phi->setDebugLoc(CurInst->getDebugLoc()); in performScalarPRE()
2624 CurInst->replaceAllUsesWith(Phi); in performScalarPRE()
2627 VN.erase(CurInst); in performScalarPRE()
2628 removeFromLeaderTable(ValNo, CurInst, CurrentBlock); in performScalarPRE()
2630 LLVM_DEBUG(dbgs() << "GVN PRE removed: " << *CurInst << '\n'); in performScalarPRE()
2632 MD->removeInstruction(CurInst); in performScalarPRE()
2634 MSSAU->removeMemoryAccess(CurInst); in performScalarPRE()
2635 LLVM_DEBUG(verifyRemoved(CurInst)); in performScalarPRE()
2638 ICF->removeInstruction(CurInst); in performScalarPRE()
2639 CurInst->eraseFromParent(); in performScalarPRE()
2661 Instruction *CurInst = &*BI++; in performPRE() local
2662 Changed |= performScalarPRE(CurInst); in performPRE()