[llvm] [LoopPeel] Fix typo Derefencebale -> Derefenceable. NFC (PR #170791)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 4 17:44:02 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Craig Topper (topperc)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/170791.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Utils/LoopPeel.cpp (+2-2)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/170791
More information about the llvm-commits
mailing list