Home
last modified time | relevance | path

Searched refs:WideIV (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp517 auto *WideIV = dyn_cast<VPWidenIntOrFpInductionRecipe>(&Phi); in optimizeInductions() local
518 if (!WideIV) in optimizeInductions()
520 if (HasOnlyVectorVFs && none_of(WideIV->users(), [WideIV](VPUser *U) { in optimizeInductions()
521 return U->usesScalars(WideIV); in optimizeInductions()
525 const InductionDescriptor &ID = WideIV->getInductionDescriptor(); in optimizeInductions()
527 Plan, ID, SE, WideIV->getTruncInst(), WideIV->getPHINode()->getType(), in optimizeInductions()
528 WideIV->getStartValue(), WideIV->getStepValue()); in optimizeInductions()
532 WideIV->replaceAllUsesWith(Steps); in optimizeInductions()
534 WideIV->replaceUsesWithIf(Steps, [WideIV](VPUser &U, unsigned) { in optimizeInductions()
535 return U.usesScalars(WideIV); in optimizeInductions()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp857 auto CreateWideIV = [&](WideIVInfo WideIV, bool &Deleted) -> bool { in CanWidenIV() argument
859 createWideIV(WideIV, LI, SE, Rewriter, DT, DeadInsts, ElimExt, Widened, in CanWidenIV()
864 LLVM_DEBUG(dbgs() << "Deleting old phi: "; WideIV.NarrowIV->dump()); in CanWidenIV()
865 Deleted = RecursivelyDeleteDeadPHINode(WideIV.NarrowIV); in CanWidenIV()