Lines Matching refs:Cost

51   InstructionCost Cost = 0;  in getRISCVInstructionCost()  local
55 Cost += TLI->getVRGatherVICost(VT); in getRISCVInstructionCost()
58 Cost += TLI->getVRGatherVVCost(VT); in getRISCVInstructionCost()
62 Cost += TLI->getVSlideVICost(VT); in getRISCVInstructionCost()
66 Cost += TLI->getVSlideVXCost(VT); in getRISCVInstructionCost()
82 Cost += Log2_32_Ceil(VL); in getRISCVInstructionCost()
89 Cost += VL; in getRISCVInstructionCost()
103 Cost += 1; in getRISCVInstructionCost()
106 Cost += LMULCost; in getRISCVInstructionCost()
109 return Cost; in getRISCVInstructionCost()
449 InstructionCost Cost = 0; in getShuffleCost() local
460 Cost += getShuffleCost(IsSingleVector ? TTI::SK_PermuteSingleSrc in getShuffleCost()
463 return Cost; in getShuffleCost()
675 InstructionCost Cost = MemCost; in getInterleavedMemoryOpCost() local
683 Cost += ShuffleCost; in getInterleavedMemoryOpCost()
685 return Cost; in getInterleavedMemoryOpCost()
938 InstructionCost Cost = getRISCVInstructionCost( in getIntrinsicInstrCost() local
946 Cost += getCmpSelInstrCost(Instruction::ICmp, BoolTy, RetTy, in getIntrinsicInstrCost()
951 return Cost; in getIntrinsicInstrCost()
955 unsigned Cost = 5; in getIntrinsicInstrCost() local
958 return Cost * LT.first; in getIntrinsicInstrCost()
963 unsigned Cost = 7; in getIntrinsicInstrCost() local
966 return Cost * LT.first; in getIntrinsicInstrCost()
976 unsigned Cost = 7; in getIntrinsicInstrCost() local
980 return Cost * LT.first; in getIntrinsicInstrCost()
1017 return LT.first * Entry->Cost; in getIntrinsicInstrCost()
1089 InstructionCost Cost = 0; in getCastInstrCost() local
1097 Cost += getRISCVInstructionCost(Op, DstMVT, CostKind); in getCastInstrCost()
1099 return Cost; in getCastInstrCost()
1390 InstructionCost Cost = 0; in getMemoryOpCost() local
1392 Cost += getStoreImmCost(Src, OpInfo, CostKind); in getMemoryOpCost()
1402 return Cost + BaseCost; in getMemoryOpCost()
1777 InstructionCost Cost = TTI::TCC_Free; in getPointersChainCost() local
1808 Cost += getArithmeticInstrCost(Instruction::Add, GEP->getType(), CostKind, in getPointersChainCost()
1814 Cost += getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in getPointersChainCost()
1818 return Cost; in getPointersChainCost()
1863 InstructionCost Cost = 0; in getUnrollingPreferences() local
1880 Cost += getInstructionCost(&I, Operands, in getUnrollingPreferences()
1885 LLVM_DEBUG(dbgs() << "Cost of loop: " << Cost << "\n"); in getUnrollingPreferences()
1895 if (Cost < 12) in getUnrollingPreferences()