Searched refs:OldCost (Results 1 – 2 of 2) sorted by relevance
2599 bool isPromotionProfitable(unsigned NewCost, unsigned OldCost,3060 unsigned NewCost, unsigned OldCost, Value *PromotedOperand) const { in isPromotionProfitable() argument3061 DEBUG(dbgs() << "OldCost: " << OldCost << "\tNewCost: " << NewCost << '\n'); in isPromotionProfitable()3065 if (NewCost > OldCost) in isPromotionProfitable()3067 if (NewCost < OldCost) in isPromotionProfitable()
528 unsigned OldCost = ConstantMaterializationCost(MulConstVal); in canExtractShiftFromMul() local530 return NewCost < OldCost; in canExtractShiftFromMul()