[llvm] [VPlan] Add initial VPScalarEvolution, use to get trip count SCEV (NFC) (PR #94464)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 02:35:07 PDT 2024
================
@@ -674,10 +674,8 @@ void VPlanTransforms::optimizeForVFAndUF(VPlan &Plan, ElementCount BestVF,
m_BranchOnCond(m_Not(m_ActiveLaneMask(m_VPValue(), m_VPValue())))))
return;
- Type *IdxTy =
- Plan.getCanonicalIV()->getStartValue()->getLiveInIRValue()->getType();
- const SCEV *TripCount = createTripCountSCEV(IdxTy, PSE);
ScalarEvolution &SE = *PSE.getSE();
+ const SCEV *TripCount = VPScalarEvolution(SE).getSCEV(Plan.getTripCount());
----------------
fhahn wrote:
Simplified by moving to a single function, but kept declaration and definition in VPAnalysis for now
https://github.com/llvm/llvm-project/pull/94464
More information about the llvm-commits
mailing list