Lines Matching defs:Cost
52 InstructionCost Cost = 0;
56 Cost += TLI->getVRGatherVICost(VT);
59 Cost += TLI->getVRGatherVVCost(VT);
63 Cost += TLI->getVSlideVICost(VT);
67 Cost += TLI->getVSlideVXCost(VT);
83 Cost += Log2_32_Ceil(VL);
90 Cost += VL;
104 Cost += 1;
107 Cost += LMULCost;
110 return Cost;
430 InstructionCost Cost = 0;
437 Cost += TTI.getShuffleCost(TTI::SK_ExtractSubvector, Tp, {}, CostKind,
445 Cost += TTI.getShuffleCost(TTI::SK_PermuteSingleSrc, SingleOpTy,
452 Cost += TTI.getShuffleCost(
458 Cost += TTI.getShuffleCost(
463 Cost += TTI.getShuffleCost(TTI::SK_PermuteTwoSrc, SingleOpTy, RegMask,
473 return Cost;
525 InstructionCost Cost = 0;
539 Cost += DestLT.first * TLI->getLMULCost(DestLT.second);
540 Cost += getShuffleCost(TTI::SK_InsertSubvector, DestTp, {},
543 return Cost;
597 InstructionCost Cost = 0;
617 Cost += getShuffleCost(IsSingleVector ? TTI::SK_PermuteSingleSrc
621 return Cost;
783 InstructionCost Cost = BaseT::getScalarizationOverhead(
803 if (BV < Cost)
804 Cost = BV;
807 return Cost;
846 InstructionCost Cost =
849 Cost += Factor * TLI->getLMULCost(SubVecVT);
850 return LT.first * Cost;
880 InstructionCost Cost = MemCost;
888 Cost += ShuffleCost;
890 return Cost;
932 // Cost is proportional to the number of memory operations implied. For
955 // Cost is proportional to the number of memory operations implied. For
971 InstructionCost Cost = 0;
977 Cost += getMemoryOpCost(Instruction::Store, Ty, A, 0, CostKind) +
980 return Cost;
1267 InstructionCost Cost = getRISCVInstructionCost(
1275 Cost += getCmpSelInstrCost(Instruction::ICmp, BoolTy, RetTy,
1280 return Cost;
1284 unsigned Cost = 5;
1287 return Cost * LT.first;
1292 unsigned Cost = 7;
1295 return Cost * LT.first;
1305 unsigned Cost = 7;
1309 return Cost * LT.first;
1348 return LT.first * Entry->Cost;
1450 InstructionCost Cost = 0;
1458 Cost += getRISCVInstructionCost(Op, DstMVT, CostKind);
1460 return Cost;
1472 InstructionCost Cost = 0;
1482 Cost +=
1485 Cost += getCastInstrCost(Opcode, Dst, VecF32Ty, CCH, CostKind, I);
1486 return Cost;
1489 Cost += getRISCVInstructionCost(FCVT, DstLT.second, CostKind);
1491 Cost += getRISCVInstructionCost(FWCVT, DstLT.second, CostKind);
1497 Cost += getRISCVInstructionCost(FNCVT, VecVT, CostKind);
1500 Cost +=
1504 return Cost;
1515 InstructionCost Cost = 0;
1525 Cost += getCastInstrCost(Opcode, VecF32Ty, Src, CCH, CostKind, I);
1526 Cost += VecF32LT.first * getRISCVInstructionCost(RISCV::VFNCVT_F_F_W,
1528 return Cost;
1532 Cost += getRISCVInstructionCost(FCVT, DstLT.second, CostKind);
1539 Cost += getCastInstrCost(Op, VecTy, Src, CCH, CostKind, I);
1541 Cost += getRISCVInstructionCost(FWCVT, DstLT.second, CostKind);
1543 Cost += getRISCVInstructionCost(FNCVT, DstLT.second, CostKind);
1544 return Cost;
1592 // Cost of Canonical Nan + branch
1611 // Cost of Canonical Nan + branch
1852 InstructionCost Cost = 0;
1854 Cost += getStoreImmCost(Src, OpInfo, CostKind);
1859 InstructionCost Cost = LT.first;
1861 return Cost;
1871 return Cost;
1882 return Cost + BaseCost;
1982 // ScalarizeCost + Num * Cost for fixed vector,
2336 InstructionCost Cost = TTI::TCC_Free;
2367 Cost += getArithmeticInstrCost(Instruction::Add, GEP->getType(), CostKind,
2372 Cost += getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(),
2376 return Cost;
2421 InstructionCost Cost = 0;
2438 Cost += getInstructionCost(&I, Operands,
2443 LLVM_DEBUG(dbgs() << "Cost of loop: " << Cost << "\n");
2452 if (Cost < 12)