Home
last modified time | relevance | path

Searched refs:ScalarCost (Results 1 – 19 of 19) sorted by relevance

/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h734 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( in getIntrinsicInstrCost() local
737 return ScalarCalls * ScalarCost + ScalarizationCost; in getIntrinsicInstrCost()
882 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( in getIntrinsicInstrCost() local
891 return ScalarCalls * ScalarCost + ScalarizationCost; in getIntrinsicInstrCost()
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp512 unsigned ScalarCost = in getArithmeticInstrCost() local
514 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(VTy, Args); in getArithmeticInstrCost()
792 unsigned ScalarCost = getCastInstrCost( in getCastInstrCost() local
794 unsigned TotCost = VF * ScalarCost; in getCastInstrCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp431 unsigned ScalarCost = in getArithmeticInstrCost() local
433 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); in getArithmeticInstrCost()
722 unsigned ScalarCost = getCastInstrCost(Opcode, Dst->getScalarType(), in getCastInstrCost() local
724 unsigned TotCost = VF * ScalarCost; in getCastInstrCost()
/external/llvm-project/llvm/lib/Analysis/
DTargetTransformInfo.cpp98 unsigned ScalarCost) in IntrinsicCostAttributes() argument
99 : RetTy(CI.getType()), IID(Id), VF(Factor), ScalarizationCost(ScalarCost) { in IntrinsicCostAttributes()
120 unsigned ScalarCost) : in IntrinsicCostAttributes() argument
121 RetTy(RTy), IID(Id), FMF(Flags), ScalarizationCost(ScalarCost) { in IntrinsicCostAttributes()
128 unsigned ScalarCost, in IntrinsicCostAttributes() argument
130 II(I), RetTy(RTy), IID(Id), FMF(Flags), ScalarizationCost(ScalarCost) { in IntrinsicCostAttributes()
/external/llvm-project/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp1388 unsigned ScalarCost = in getGatherScatterOpCost() local
1392 return ScalarCost; in getGatherScatterOpCost()
1430 return ScalarCost; in getGatherScatterOpCost()
1439 return ScalarCost; in getGatherScatterOpCost()
1445 return ScalarCost; in getGatherScatterOpCost()
1449 return ScalarCost; in getGatherScatterOpCost()
1455 return ScalarCost; in getGatherScatterOpCost()
1457 return ScalarCost; in getGatherScatterOpCost()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1749 int ScalarCost) const { in dumpTreeCosts()
1754 dbgs() << "SLP: ScalarCost = " << ScalarCost << "\n"; in dumpTreeCosts()
1756 ReuseShuffleCost + VecCost - ScalarCost << "\n"; in dumpTreeCosts()
3566 int ScalarCost = VL.size() * ScalarEltCost; in getEntryCost() local
3577 LLVM_DEBUG(dumpTreeCosts(E, ReuseShuffleCost, VecCost, ScalarCost)); in getEntryCost()
3578 return VecCost - ScalarCost; in getEntryCost()
3591 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
3628 LLVM_DEBUG(dumpTreeCosts(E, ReuseShuffleCost, VecCost, ScalarCost)); in getEntryCost()
3629 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
3694 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
[all …]
DLoopVectorize.cpp5666 const float ScalarCost = Cost; in selectVectorizationFactor() local
5668 LLVM_DEBUG(dbgs() << "LV: Scalar loop costs: " << (int)ScalarCost << ".\n"); in selectVectorizationFactor()
5694 if (VectorCost < ScalarCost) { in selectVectorizationFactor()
5710 Cost = ScalarCost; in selectVectorizationFactor()
5713 LLVM_DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs() in selectVectorizationFactor()
6408 unsigned ScalarCost = in computePredInstDiscount() local
6415 ScalarCost += TTI.getScalarizationOverhead( in computePredInstDiscount()
6419 ScalarCost += in computePredInstDiscount()
6436 ScalarCost += TTI.getScalarizationOverhead( in computePredInstDiscount()
6443 ScalarCost /= getReciprocalPredBlockProb(); in computePredInstDiscount()
[all …]
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1587 int ScalarCost = VL.size() * TTI->getCastInstrCost(VL0->getOpcode(), in getEntryCost() local
1592 return VecCost - ScalarCost; in getEntryCost()
1599 int ScalarCost = VecTy->getNumElements() * in getEntryCost() local
1602 return VecCost - ScalarCost; in getEntryCost()
1659 int ScalarCost = VecTy->getNumElements() * in getEntryCost() local
1664 return VecCost - ScalarCost; in getEntryCost()
1672 int ScalarCost = in getEntryCost() local
1678 return VecCost - ScalarCost; in getEntryCost()
1730 int ScalarCost = 0; in getEntryCost() local
1736 ScalarCost += in getEntryCost()
[all …]
DLoopVectorize.cpp5284 const float ScalarCost = Cost; in selectVectorizationFactor() local
5287 DEBUG(dbgs() << "LV: Scalar loop costs: " << (int)ScalarCost << ".\n"); in selectVectorizationFactor()
5316 DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs() in selectVectorizationFactor()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h1212 unsigned ScalarCost = variable
1215 return ScalarCalls * ScalarCost + ScalarizationCost;
1529 unsigned ScalarCost = ConcreteTTI->getIntrinsicInstrCost( variable
1539 return ScalarCalls * ScalarCost + ScalarizationCost;
/external/llvm-project/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h1407 unsigned ScalarCost = in getTypeBasedIntrinsicInstrCost() local
1410 return ScalarCalls * ScalarCost + ScalarizationCost; in getTypeBasedIntrinsicInstrCost()
1798 unsigned ScalarCost = thisT()->getIntrinsicInstrCost(Attrs, CostKind); in getTypeBasedIntrinsicInstrCost() local
1807 return ScalarCalls * ScalarCost + ScalarizationCost; in getTypeBasedIntrinsicInstrCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp3364 int ScalarCost = VL.size() * ScalarEltCost; in getEntryCost() local
3373 return VecCost - ScalarCost; in getEntryCost()
3385 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
3387 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
3451 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
3454 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
3467 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
3470 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
3547 int ScalarCost = 0; in getEntryCost() local
3563 ScalarCost += TTI->getInstructionCost( in getEntryCost()
[all …]
DLoopVectorize.cpp5082 const float ScalarCost = Cost; in selectVectorizationFactor() local
5084 LLVM_DEBUG(dbgs() << "LV: Scalar loop costs: " << (int)ScalarCost << ".\n"); in selectVectorizationFactor()
5119 Cost = ScalarCost; in selectVectorizationFactor()
5122 LLVM_DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs() in selectVectorizationFactor()
5674 unsigned ScalarCost = VF * getInstructionCost(I, 1).first; in computePredInstDiscount() local
5679 ScalarCost += TTI.getScalarizationOverhead(ToVectorTy(I->getType(), VF), in computePredInstDiscount()
5681 ScalarCost += VF * TTI.getCFInstrCost(Instruction::PHI); in computePredInstDiscount()
5695 ScalarCost += TTI.getScalarizationOverhead( in computePredInstDiscount()
5700 ScalarCost /= getReciprocalPredBlockProb(); in computePredInstDiscount()
5704 Discount += VectorCost - ScalarCost; in computePredInstDiscount()
[all …]
/external/llvm-project/llvm/include/llvm/Analysis/
DTargetTransformInfo.h134 ElementCount Factor, unsigned ScalarCost);
141 unsigned ScalarCost);
145 unsigned ScalarCost,
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4918 uint64_t ScalarCost = in isProfitableToPromote() local
4935 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()
4941 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()
4942 return ScalarCost > VectorCost; in isProfitableToPromote()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp6495 uint64_t ScalarCost = in isProfitableToPromote() local
6512 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()
6519 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()
6520 return ScalarCost > VectorCost; in isProfitableToPromote()
/external/llvm-project/llvm/lib/CodeGen/
DCodeGenPrepare.cpp6946 uint64_t ScalarCost = in isProfitableToPromote() local
6965 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()
6973 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()
6974 return ScalarCost > VectorCost; in isProfitableToPromote()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp879 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local
882 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()
/external/llvm-project/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp952 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local
955 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()