/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 734 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/ |
D | SystemZTargetTransformInfo.cpp | 512 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/ |
D | SystemZTargetTransformInfo.cpp | 431 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/ |
D | TargetTransformInfo.cpp | 98 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/ |
D | ARMTargetTransformInfo.cpp | 1388 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/ |
D | SLPVectorizer.cpp | 1749 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 …]
|
D | LoopVectorize.cpp | 5666 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/ |
D | SLPVectorizer.cpp | 1587 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 …]
|
D | LoopVectorize.cpp | 5284 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/ |
D | BasicTTIImpl.h | 1212 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/ |
D | BasicTTIImpl.h | 1407 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/ |
D | SLPVectorizer.cpp | 3364 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 …]
|
D | LoopVectorize.cpp | 5082 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/ |
D | TargetTransformInfo.h | 134 ElementCount Factor, unsigned ScalarCost); 141 unsigned ScalarCost); 145 unsigned ScalarCost,
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4918 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/ |
D | CodeGenPrepare.cpp | 6495 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/ |
D | CodeGenPrepare.cpp | 6946 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/ |
D | X86TargetTransformInfo.cpp | 879 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local 882 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 952 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local 955 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()
|