Lines Matching defs:Cost

484   InstructionCost Cost = 0;
496 Cost += std::min(InstructionCost(1), CurrVectorCost);
503 Cost += BaseT::getScalarizationOverhead(Ty, DemandedElts, Insert, Extract,
505 return Cost;
678 InstructionCost Cost =
684 Cost *= 2;
685 return Cost;
698 InstructionCost Cost =
703 Cost *= 2;
704 return Cost;
786 unsigned Cost = 0;
792 Cost += NumParts;
800 Cost--;
802 return Cost;
863 unsigned Cost = 0;
868 Cost = getVectorBitmaskConversionCost(CmpOpTy, Dst);
871 Cost += getNumVectorRegs(Dst);
872 return Cost;
918 unsigned Cost = 0;
920 Cost = (DstScalarBits < 64 ? 3 : 4);
922 Cost = 3;
926 Cost++;
927 return Cost;
1093 unsigned Cost = 1;
1095 Cost += (I != nullptr ? getOperandsExtensionCost(I) : 2);
1096 return Cost;
1145 unsigned Cost = (NumVecs_cmp * (CmpCostPerVector + PredicateExtraCost));
1146 return Cost;
1184 int Cost = ((getScalarSizeInBits(Val) == 1) ? 2 /*+test-under-mask*/ : 1);
1188 Cost += 1;
1190 return Cost;
1412 // Cost of load/store operations and the permutations needed.
1417 InstructionCost Cost = 0;
1419 Cost += NumVec - 1;
1421 Cost += (ScalarBits < 32) ? 3 : 2;
1422 return Cost;
1428 InstructionCost Cost = 0;
1430 Cost += NumVec - 1;
1433 Cost += 2 * Log2_32_Ceil(std::min(NumElems, NumEltsPerVecReg));
1434 return Cost;
1458 InstructionCost Cost =
1462 Cost += 1;
1463 return Cost;
1478 InstructionCost Cost = 0;
1480 Cost += NumVectors - 1;
1483 Cost += 2 * (std::min(NumElems, SystemZ::VectorBits / ScalarBits) - 1);
1484 return Cost;
1502 InstructionCost Cost = getVectorIntrinsicInstrCost(
1504 if (Cost != -1)
1505 return Cost;