Searched refs:OldCost (Results 1 – 3 of 3) sorted by relevance
191 InstructionCost OldCost = in vectorizeLoadInsert() local194 OldCost += TTI.getScalarizationOverhead(MinVecTy, DemandedElts, in vectorizeLoadInsert()216 if (OldCost < NewCost || !NewCost.isValid()) in vectorizeLoadInsert()329 InstructionCost OldCost, NewCost; in isExtractExtractCheap() local337 OldCost = CheapExtractCost + ScalarOpCost; in isExtractExtractCheap()342 OldCost = Extract0Cost + Extract1Cost + ScalarOpCost; in isExtractExtractCheap()367 return OldCost < NewCost; in isExtractExtractCheap()634 InstructionCost OldCost = in scalarizeBinopOrCmp() local641 if (OldCost < NewCost || !NewCost.isValid()) in scalarizeBinopOrCmp()721 InstructionCost OldCost = in foldExtractedCmps() local[all …]
3195 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost,4444 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument4445 LLVM_DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost in isPromotionProfitable()4450 if (NewCost > OldCost) in isPromotionProfitable()4452 if (NewCost < OldCost) in isPromotionProfitable()
567 unsigned OldCost = ConstantMaterializationCost(MulConstVal, Subtarget); in canExtractShiftFromMul() local569 return NewCost < OldCost; in canExtractShiftFromMul()