[all-commits] [llvm/llvm-project] f98bdd: Reapply "[LoopPeel] Remove known trip count restri...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed May 28 05:03:33 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f98bdd94e61721ebe11108956e63510692db34b2
https://github.com/llvm/llvm-project/commit/f98bdd94e61721ebe11108956e63510692db34b2
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-05-28 (Wed, 28 May 2025)
Changed paths:
M llvm/include/llvm/Transforms/Utils/LoopPeel.h
M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
M llvm/lib/Transforms/Utils/LoopPeel.cpp
M llvm/test/Transforms/LoopUnroll/peel-last-iteration-expansion-cost.ll
M llvm/test/Transforms/LoopUnroll/peel-last-iteration-with-constant-trip-count.ll
M llvm/test/Transforms/LoopUnroll/peel-last-iteration-with-variable-trip-count.ll
M llvm/test/Transforms/LoopUnroll/unroll-and-peel-last-iteration.ll
Log Message:
-----------
Reapply "[LoopPeel] Remove known trip count restriction when peeling last. (#140792)"
This reverts commit 580454526b936f7a576ddbc9bb932cf9be376ec4.
The recommitted version contains an extra check to not peel if the
latch exit is controlled by a pointer induction.
Original message:
Remove the restriction that the loop must be known to execute at least 2
iterations when peeling the last iteration. If we cannot prove at least
2 iterations are executed, a check and branch to skip the peeled loop is
inserted.
PR: https://github.com/llvm/llvm-project/pull/140792
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list