Lines Matching refs:Cost
54 int Cost = 0; in getIntImmCost() local
58 Cost += getIntImmCost(Val); in getIntImmCost()
61 return std::max(1, Cost); in getIntImmCost()
122 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); in getIntImmCost() local
123 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCost()
125 : Cost; in getIntImmCost()
151 int Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty); in getIntImmCost() local
152 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCost()
154 : Cost; in getIntImmCost()
289 return Entry->Cost; in getCastInstrCost()
335 int Cost = getArithmeticInstrCost(Instruction::Add, Ty, Opd1Info, Opd2Info, in getArithmeticInstrCost() local
338 Cost += getArithmeticInstrCost(Instruction::Sub, Ty, Opd1Info, Opd2Info, in getArithmeticInstrCost()
341 Cost += getArithmeticInstrCost(Instruction::Select, Ty, Opd1Info, Opd2Info, in getArithmeticInstrCost()
344 Cost += getArithmeticInstrCost(Instruction::AShr, Ty, Opd1Info, Opd2Info, in getArithmeticInstrCost()
347 return Cost; in getArithmeticInstrCost()
405 return Entry->Cost; in getCmpSelInstrCost()
463 int Cost = 0; in getCostOfKeepingLiveOverCall() local
468 Cost += getMemoryOpCost(Instruction::Store, I, 128, 0) + in getCostOfKeepingLiveOverCall()
471 return Cost; in getCostOfKeepingLiveOverCall()