Searched refs:OldCost (Results 1 – 2 of 2) sorted by relevance
2940 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost,4124 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument4125 LLVM_DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost in isPromotionProfitable()4130 if (NewCost > OldCost) in isPromotionProfitable()4132 if (NewCost < OldCost) in isPromotionProfitable()
541 unsigned OldCost = ConstantMaterializationCost(MulConstVal, Subtarget); in canExtractShiftFromMul() local543 return NewCost < OldCost; in canExtractShiftFromMul()