Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp398 unsigned ScalarCost = getArithmeticInstrCost(Opcode, Ty->getScalarType()); in getArithmeticInstrCost() local
399 unsigned Cost = (VF * ScalarCost) + getScalarizationOverhead(Ty, Args); in getArithmeticInstrCost()
663 unsigned ScalarCost = getCastInstrCost(Opcode, Dst->getScalarType(), in getCastInstrCost() local
665 unsigned TotCost = VF * ScalarCost; in getCastInstrCost()
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h1005 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( variable
1008 return ScalarCalls * ScalarCost + ScalarizationCost;
1190 unsigned ScalarCost = static_cast<T *>(this)->getIntrinsicInstrCost( variable
1200 return ScalarCalls * ScalarCost + ScalarizationCost;
/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-7.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp2201 int ScalarCost = VL.size() * ScalarEltCost; in getEntryCost() local
2210 return VecCost - ScalarCost; in getEntryCost()
2222 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
2224 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
2286 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
2289 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
2302 int ScalarCost = VecTy->getNumElements() * ScalarEltCost; in getEntryCost() local
2305 return ReuseShuffleCost + VecCost - ScalarCost; in getEntryCost()
2375 int ScalarCost = 0; in getEntryCost() local
2391 ScalarCost += TTI->getInstructionCost( in getEntryCost()
[all …]
DLoopVectorize.cpp5032 const float ScalarCost = Cost; in selectVectorizationFactor() local
5034 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() local
5579 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 …]
/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-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5963 uint64_t ScalarCost = in isProfitableToPromote() local
5980 ScalarCost += TTI.getArithmeticInstrCost( in isProfitableToPromote()
5987 << ScalarCost << "\nVector: " << VectorCost << '\n'); in isProfitableToPromote()
5988 return ScalarCost > VectorCost; in isProfitableToPromote()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp797 int ScalarCost = getArithmeticInstrCost( in getArithmeticInstrCost() local
800 return 20 * LT.first * LT.second.getVectorNumElements() * ScalarCost; in getArithmeticInstrCost()