Searched refs:ScalarCost (Results 1 – 9 of 9) sorted by relevance
398 unsigned ScalarCost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); in getArithmeticInstrCost() local399 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); in getArithmeticInstrCost()663 unsigned ScalarCost = getCastInstrCost(Opcode, Dst->getScalarType(), in getCastInstrCost() local665 unsigned TotCost = VF * ScalarCost; in getCastInstrCost()
734 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( in getIntrinsicInstrCost() local737 return ScalarCalls * ScalarCost + ScalarizationCost; in getIntrinsicInstrCost()882 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( in getIntrinsicInstrCost() local891 return ScalarCalls * ScalarCost + ScalarizationCost; in getIntrinsicInstrCost()
1005 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( variable1008 return ScalarCalls * ScalarCost + ScalarizationCost;1190 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( variable1200 return ScalarCalls * ScalarCost + ScalarizationCost;
1587 int ScalarCost = VL.size() * TTI->getCastInstrCost(VL0->getOpcode(), in getEntryCost() local1592 return VecCost - ScalarCost; in getEntryCost()1599 int ScalarCost = VecTy->getNumElements() * in getEntryCost() local1602 return VecCost - ScalarCost; in getEntryCost()1659 int ScalarCost = VecTy->getNumElements() * in getEntryCost() local1664 return VecCost - ScalarCost; in getEntryCost()1672 int ScalarCost = in getEntryCost() local1678 return VecCost - ScalarCost; in getEntryCost()1730 int ScalarCost = 0; in getEntryCost() local1736 ScalarCost += in getEntryCost()[all …]
5284 const float ScalarCost = Cost; in selectVectorizationFactor() local5287 DEBUG(dbgs() << "LV: Scalar loop costs: " << (int)ScalarCost << ".\n"); in selectVectorizationFactor()5316 DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs() in selectVectorizationFactor()
5032 const float ScalarCost = Cost; in selectVectorizationFactor() local5034 LLVM_DEBUG(dbgs() << "LV: Scalar loop costs: " << (int)ScalarCost << ".\n"); in selectVectorizationFactor()5070 Cost = ScalarCost; in selectVectorizationFactor()5073 LLVM_DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs() in selectVectorizationFactor()5574 unsigned ScalarCost = VF * getInstructionCost(I, 1).first; in computePredInstDiscount() local5579 ScalarCost += TTI.getScalarizationOverhead(ToVectorTy(I->getType(), VF), in computePredInstDiscount()5581 ScalarCost += VF * TTI.getCFInstrCost(Instruction::PHI); in computePredInstDiscount()5595 ScalarCost += TTI.getScalarizationOverhead( in computePredInstDiscount()5600 ScalarCost /= getReciprocalPredBlockProb(); in computePredInstDiscount()5604 Discount += VectorCost - ScalarCost; in computePredInstDiscount()[all …]
4918 uint64_t ScalarCost = in isProfitableToPromote() local4935 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()4941 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()4942 return ScalarCost > VectorCost; in isProfitableToPromote()
5963 uint64_t ScalarCost = in isProfitableToPromote() local5980 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()5987 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()5988 return ScalarCost > VectorCost; in isProfitableToPromote()
797 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local800 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()