[llvm] [LICM] Fix typo in variable name (NFC) (PR #202889)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 01:24:39 PDT 2026
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/202889
None
>From 05a5dcf324450dee28ba70def046e34fe36b161b Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Wed, 10 Jun 2026 10:23:27 +0200
Subject: [PATCH] [LICM] Fix typo in variable name (NFC)
---
llvm/lib/Transforms/Scalar/LICM.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index caa3835b840fa..c7e29b70662d8 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -1979,7 +1979,7 @@ bool llvm::promoteLoopAccessesToScalars(
// store is never executed, but the exit blocks are not executed either.
bool DereferenceableInPH = false;
- bool StoreIsGuanteedToExecute = false;
+ bool StoreIsGuaranteedToExecute = false;
bool LoadIsGuaranteedToExecute = false;
bool FoundLoadToPromote = false;
@@ -2075,7 +2075,7 @@ bool llvm::promoteLoopAccessesToScalars(
Align InstAlignment = Store->getAlign();
bool GuaranteedToExecute =
SafetyInfo->isGuaranteedToExecute(*UI, DT, CurLoop);
- StoreIsGuanteedToExecute |= GuaranteedToExecute;
+ StoreIsGuaranteedToExecute |= GuaranteedToExecute;
if (GuaranteedToExecute) {
DereferenceableInPH = true;
if (StoreSafety == StoreSafetyUnknown)
@@ -2195,13 +2195,13 @@ bool llvm::promoteLoopAccessesToScalars(
LoopPromoter Promoter(SomePtr, LoopUses, SSA, ExitBlocks, InsertPts,
MSSAInsertPts, PIC, MSSAU, *LI, DL, Alignment,
SawUnorderedAtomic,
- StoreIsGuanteedToExecute ? AATags : AAMDNodes(),
+ StoreIsGuaranteedToExecute ? AATags : AAMDNodes(),
*SafetyInfo, StoreSafety == StoreSafe);
// Set up the preheader to have a definition of the value. It is the live-out
// value from the preheader that uses in the loop will use.
LoadInst *PreheaderLoad = nullptr;
- if (FoundLoadToPromote || !StoreIsGuanteedToExecute) {
+ if (FoundLoadToPromote || !StoreIsGuaranteedToExecute) {
PreheaderLoad =
new LoadInst(AccessTy, SomePtr, SomePtr->getName() + ".promoted",
Preheader->getTerminator()->getIterator());
More information about the llvm-commits
mailing list