Skip to content

Conversation

@topperc
Copy link
Collaborator

@topperc topperc commented Dec 5, 2025

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Dec 5, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Craig Topper (topperc)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/170791.diff

1 Files Affected:

  • (modified) llvm/lib/Transforms/Utils/LoopPeel.cpp (+2-2)
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);

@topperc topperc changed the title [LoopPeel] Fix typo Derefencebale -> Derefenceable. NFC [LoopPeel] Fix typo Derefencebale -> Dereferenceable. NFC Dec 5, 2025
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@topperc topperc enabled auto-merge (squash) December 5, 2025 18:13
@topperc topperc merged commit 2d98a36 into llvm:main Dec 5, 2025
9 of 10 checks passed
@topperc topperc deleted the pr/typo branch December 5, 2025 19:30
honeygoyal pushed a commit to honeygoyal/llvm-project that referenced this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants