Lines Matching refs:CurInst
2866 bool GVNPass::performScalarPRE(Instruction *CurInst) { in performScalarPRE() argument
2867 if (isa<AllocaInst>(CurInst) || CurInst->isTerminator() || in performScalarPRE()
2868 isa<PHINode>(CurInst) || CurInst->getType()->isVoidTy() || in performScalarPRE()
2869 CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() || in performScalarPRE()
2870 isa<DbgInfoIntrinsic>(CurInst)) in performScalarPRE()
2877 if (isa<CmpInst>(CurInst)) in performScalarPRE()
2887 if (isa<GetElementPtrInst>(CurInst)) in performScalarPRE()
2890 if (auto *CallB = dyn_cast<CallBase>(CurInst)) { in performScalarPRE()
2896 uint32_t ValNo = VN.lookup(CurInst); in performScalarPRE()
2907 BasicBlock *CurrentBlock = CurInst->getParent(); in performScalarPRE()
2935 } else if (predV == CurInst) { in performScalarPRE()
2956 if (!isSafeToSpeculativelyExecute(CurInst)) { in performScalarPRE()
2961 if (ICF->isDominatedByICFIFromSameBlock(CurInst)) in performScalarPRE()
2978 PREInstr = CurInst->clone(); in performScalarPRE()
2996 PHINode *Phi = PHINode::Create(CurInst->getType(), predMap.size(), in performScalarPRE()
2997 CurInst->getName() + ".pre-phi"); in performScalarPRE()
3003 patchReplacementInstruction(CurInst, V); in performScalarPRE()
3014 Phi->setDebugLoc(CurInst->getDebugLoc()); in performScalarPRE()
3015 CurInst->replaceAllUsesWith(Phi); in performScalarPRE()
3018 VN.erase(CurInst); in performScalarPRE()
3019 removeFromLeaderTable(ValNo, CurInst, CurrentBlock); in performScalarPRE()
3021 LLVM_DEBUG(dbgs() << "GVN PRE removed: " << *CurInst << '\n'); in performScalarPRE()
3022 removeInstruction(CurInst); in performScalarPRE()
3044 Instruction *CurInst = &*BI++; in performPRE() local
3045 Changed |= performScalarPRE(CurInst); in performPRE()