Lines Matching defs:TripCount
109 bool TryConvertActiveLaneMask(Value *TripCount);
115 const SCEV *IsSafeActiveMask(IntrinsicInst *ActiveLaneMask, Value *TripCount);
187 // 1) Check that the TripCount (TC) belongs to this loop (originally).
190 // ceil(ElementCount / VectorWidth) >= TripCount
194 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount
198 Value *TripCount) {
209 auto *TC = SE->getSCEV(TripCount);
217 // 1) Smoke tests that the original scalar loop TripCount (TC) belongs to
257 ConstantInt *TC = dyn_cast<ConstantInt>(TripCount);
265 // each other. The TripCount for a predicated vector loop body is
286 // ((ElementCount + VectorWidth - 1) / VectorWidth) - TripCount >= 0
290 // TripCount == (ElementCount + VectorWidth - 1) / VectorWidth
294 auto *VW = SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth));
298 SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth - 1)));
307 dbgs() << "ARM TP: - TripCount = " << *TC << "\n";
415 bool MVETailPredication::TryConvertActiveLaneMask(Value *TripCount) {
432 const SCEV *StartSCEV = IsSafeActiveMask(ActiveLaneMask, TripCount);