Lines Matching refs:Cost

105     int Cost = 2 * getArithmeticInstrCost(Instruction::AShr, Ty, Op1Info,  in getArithmeticInstrCost()  local
108 Cost += getArithmeticInstrCost(Instruction::LShr, Ty, Op1Info, Op2Info, in getArithmeticInstrCost()
111 Cost += getArithmeticInstrCost(Instruction::Add, Ty, Op1Info, Op2Info, in getArithmeticInstrCost()
115 return Cost; in getArithmeticInstrCost()
131 return LT.first * Entry->Cost; in getArithmeticInstrCost()
145 return LT.first * Entry->Cost; in getArithmeticInstrCost()
173 return LT.first * Entry->Cost; in getArithmeticInstrCost()
208 return LT.first * Entry->Cost; in getArithmeticInstrCost()
238 return LT.first * Entry->Cost; in getArithmeticInstrCost()
287 return LT.first * Entry->Cost; in getArithmeticInstrCost()
366 return LT.first * Entry->Cost; in getArithmeticInstrCost()
392 return LT.first * Entry->Cost; in getArithmeticInstrCost()
403 return LT.first * Entry->Cost; in getArithmeticInstrCost()
423 int Cost = 1; in getShuffleCost() local
425 Cost = 3; // Extract + insert + copy. in getShuffleCost()
428 return Cost * LT.first; in getShuffleCost()
460 return LT.first * Entry->Cost; in getShuffleCost()
483 return LT.first * Entry->Cost; in getShuffleCost()
501 return LT.first * Entry->Cost; in getShuffleCost()
520 return LT.first * Entry->Cost; in getShuffleCost()
800 return LTSrc.first * Entry->Cost; in getCastInstrCost()
814 return Entry->Cost; in getCastInstrCost()
820 return Entry->Cost; in getCastInstrCost()
826 return Entry->Cost; in getCastInstrCost()
833 return Entry->Cost; in getCastInstrCost()
840 return Entry->Cost; in getCastInstrCost()
847 return Entry->Cost; in getCastInstrCost()
897 return LT.first * Entry->Cost; in getCmpSelInstrCost()
901 return LT.first * Entry->Cost; in getCmpSelInstrCost()
905 return LT.first * Entry->Cost; in getCmpSelInstrCost()
909 return LT.first * Entry->Cost; in getCmpSelInstrCost()
939 int Cost = 0; in getScalarizationOverhead() local
943 Cost += getVectorInstrCost(Instruction::InsertElement, Ty, i); in getScalarizationOverhead()
945 Cost += getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getScalarizationOverhead()
948 return Cost; in getScalarizationOverhead()
970 int Cost = BaseT::getMemoryOpCost(Opcode, VTy->getScalarType(), Alignment, in getMemoryOpCost() local
974 return NumElem * Cost + SplitCost; in getMemoryOpCost()
984 int Cost = LT.first * 1; in getMemoryOpCost() local
989 Cost*=2; in getMemoryOpCost()
991 return Cost; in getMemoryOpCost()
1026 int Cost = 0; in getMaskedMemoryOpCost() local
1030 Cost += getShuffleCost(TTI::SK_Alternate, SrcVTy, 0, nullptr) + in getMaskedMemoryOpCost()
1037 Cost += getShuffleCost(TTI::SK_InsertSubvector, NewMaskTy, 0, MaskTy); in getMaskedMemoryOpCost()
1040 return Cost + LT.first*4; // Each maskmov costs 4 in getMaskedMemoryOpCost()
1043 return Cost+LT.first; in getMaskedMemoryOpCost()
1113 return LT.first * Entry->Cost; in getReductionCost()
1117 return LT.first * Entry->Cost; in getReductionCost()
1121 return LT.first * Entry->Cost; in getReductionCost()
1125 return LT.first * Entry->Cost; in getReductionCost()
1168 int Cost = 0; in getIntImmCost() local
1172 Cost += getIntImmCost(Val); in getIntImmCost()
1175 return std::max(1, Cost); in getIntImmCost()
1256 int Cost = X86TTIImpl::getIntImmCost(Imm, Ty); in getIntImmCost() local
1257 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCost()
1259 : Cost; in getIntImmCost()