[llvm] [LoopPeel] Fix typo Derefencebale -> Derefenceable. NFC (PR #170791)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 17:43:23 PST 2025
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/170791
None
>From 5dce123cb8ec1970d970b623375ba31ab6583fcb Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Thu, 4 Dec 2025 17:41:56 -0800
Subject: [PATCH] [LoopPeel] Fix typo Derefencebale -> Derefenceable. NFC
---
llvm/lib/Transforms/Utils/LoopPeel.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp
index dc12bddd5fa0e..4763efd63817f 100644
--- a/llvm/lib/Transforms/Utils/LoopPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp
@@ -419,7 +419,7 @@ 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,
+static unsigned peelToTurnInvariantLoadsDerefenceable(Loop &L,
DominatorTree &DT,
AssumptionCache *AC) {
// Skip loops with a single exiting block, because there should be no benefit
@@ -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 = peelToTurnInvariantLoadsDerefenceable(*L, DT, AC);
if (DesiredPeelCount > 0) {
DesiredPeelCount = std::min(DesiredPeelCount, MaxPeelCount);
More information about the llvm-commits
mailing list