[llvm] 2d98a36 - [LoopPeel] Fix typo Derefencebale -> Dereferenceable. NFC (#170791)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 10:17:41 PST 2025
Author: Craig Topper
Date: 2025-12-05T18:17:36Z
New Revision: 2d98a366b79e9cc657a3cf0ee3203f046eab457a
URL: https://github.com/llvm/llvm-project/commit/2d98a366b79e9cc657a3cf0ee3203f046eab457a
DIFF: https://github.com/llvm/llvm-project/commit/2d98a366b79e9cc657a3cf0ee3203f046eab457a.diff
LOG: [LoopPeel] Fix typo Derefencebale -> Dereferenceable. NFC (#170791)
Co-authored-by: Nikita Popov <github at npopov.com>
Added:
Modified:
llvm/lib/Transforms/Utils/LoopPeel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp
index dc12bddd5fa0e..174a21a96c730 100644
--- a/llvm/lib/Transforms/Utils/LoopPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp
@@ -419,9 +419,9 @@ std::optional<unsigned> PhiAnalyzer::calculateIterationsToPeel() {
// the remainder loop after peeling. The load must also be used (transitively)
// by an exit condition. Returns the number of iterations to peel off (at the
// moment either 0 or 1).
-static unsigned peelToTurnInvariantLoadsDerefencebale(Loop &L,
- DominatorTree &DT,
- AssumptionCache *AC) {
+static unsigned peelToTurnInvariantLoadsDereferenceable(Loop &L,
+ DominatorTree &DT,
+ AssumptionCache *AC) {
// Skip loops with a single exiting block, because there should be no benefit
// for the heuristic below.
if (L.getExitingBlock())
@@ -816,7 +816,7 @@ void llvm::computePeelCount(Loop *L, unsigned LoopSize,
DesiredPeelCount = std::max(DesiredPeelCount, CountToEliminateCmps);
if (DesiredPeelCount == 0)
- DesiredPeelCount = peelToTurnInvariantLoadsDerefencebale(*L, DT, AC);
+ DesiredPeelCount = peelToTurnInvariantLoadsDereferenceable(*L, DT, AC);
if (DesiredPeelCount > 0) {
DesiredPeelCount = std::min(DesiredPeelCount, MaxPeelCount);
More information about the llvm-commits
mailing list