Lines Matching defs:TripCount
116 bool TryConvert(Value *TripCount);
126 bool IsSafeActiveMask(IntrinsicInst *ActiveLaneMask, Value *TripCount,
130 void InsertVCTPIntrinsic(IntrinsicInst *ActiveLaneMask, Value *TripCount,
352 // ceil(ElementCount / VectorWidth) >= TripCount
356 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount
360 Value *TripCount, FixedVectorType *VecTy) {
384 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount
392 // TripCount (TC), for which we can find meaningful value ranges, we use that
397 auto *TC = SE->getSCEV(TripCount);
398 unsigned SizeInBits = TripCount->getType()->getScalarSizeInBits();
411 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount,
433 auto *One = SE->getOne(TripCount->getType());
438 SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth - 1)));
441 SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth)));
447 ConstantRange(APInt(TripCount->getType()->getScalarSizeInBits(), 0));
521 Value *TripCount, FixedVectorType *VecTy) {
572 bool MVETailPredication::TryConvert(Value *TripCount) {
599 if (!IsSafeActiveMask(ActiveLaneMask, TripCount, VecTy)) {
604 InsertVCTPIntrinsic(ActiveLaneMask, TripCount, VecTy);