[llvm] [LV] Simplify epilogue VF selection by comparing against MaxTripCount (PR #186185)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 14:27:17 PDT 2026
================
@@ -4287,8 +4287,8 @@ std::unique_ptr<VPlan> LoopVectorizationPlanner::selectBestEpiloguePlan(
Type *TCType = Legal->getWidestInductionType();
const SCEV *RemainingIterations = nullptr;
- unsigned MaxTripCount = 0;
- const SCEV *TC = vputils::getSCEVExprForVPValue(MainPlan.getTripCount(), PSE);
+ const SCEV *TC = vputils::getSCEVExprForVPValue(
+ getPlanFor(MainLoopVF).getTripCount(), PSE);
----------------
fhahn wrote:
Is this change intentional or should this remain `MainPlan.getTripCount()`
https://github.com/llvm/llvm-project/pull/186185
More information about the llvm-commits
mailing list