[llvm] [LV] Adjust the trip count of tail-folded loops which may overflow (PR #224340)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 8 08:48:13 PDT 2026
================
@@ -147,8 +147,6 @@ addVPLaneMaskPhiAndUpdateExitBranch(VPlan &Plan) {
VPBasicBlock *EB = TopRegion->getExitingBasicBlock();
VPValue *StartV = Plan.getZero(TopRegion->getCanonicalIVType());
auto *CanonicalIVIncrement = TopRegion->getOrCreateCanonicalIVIncrement();
- // TODO: Check if dropping the flags is needed.
- TopRegion->clearCanonicalIVNUW(CanonicalIVIncrement);
----------------
david-arm wrote:
It might be good to commit this change separately because from what you were saying it doesn't look like this was needed prior to this PR, right? Presumably this has some effect on the tests?
https://github.com/llvm/llvm-project/pull/224340
More information about the llvm-commits
mailing list