Lines Matching refs:CurInst
2146 bool GVN::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument
2147 if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() || in performScalarPRE()
2148 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE()
2149 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE()
2150 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE()
2157 if (isa<CmpInst>(CurInst)) in performScalarPRE()
2167 if (isa<GetElementPtrInst>(CurInst)) in performScalarPRE()
2171 if (CallInst *CallI = dyn_cast<CallInst>(CurInst)) in performScalarPRE()
2175 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE()
2186 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE()
2206 llvm::any_of(CurInst->operands(), [&](const Use &U) { in performScalarPRE()
2221 } else if (predV == CurInst) { in performScalarPRE()
2242 if (!isSafeToSpeculativelyExecute(CurInst)) { in performScalarPRE()
2247 if (ICF->isDominatedByICFIFromSameBlock(CurInst)) in performScalarPRE()
2264 PREInstr = CurInst->clone(); in performScalarPRE()
2281 PHINode::Create(CurInst->getType(), predMap.size(), in performScalarPRE()
2282 CurInst->getName() + ".pre-phi", &CurrentBlock->front()); in performScalarPRE()
2287 patchReplacementInstruction(CurInst, V); in performScalarPRE()
2298 Phi->setDebugLoc(CurInst->getDebugLoc()); in performScalarPRE()
2299 CurInst->replaceAllUsesWith(Phi); in performScalarPRE()
2302 VN.erase(CurInst); in performScalarPRE()
2303 removeFromLeaderTable(ValNo, CurInst, CurrentBlock); in performScalarPRE()
2305 LLVM_DEBUG(dbgs() << "GVN PRE removed: " << *CurInst << '\n'); in performScalarPRE()
2307 MD->removeInstruction(CurInst); in performScalarPRE()
2308 LLVM_DEBUG(verifyRemoved(CurInst)); in performScalarPRE()
2311 ICF->removeInstruction(CurInst); in performScalarPRE()
2312 CurInst->eraseFromParent(); in performScalarPRE()
2334 Instruction *CurInst = &*BI++; in performPRE() local
2335 Changed |= performScalarPRE(CurInst); in performPRE()