[llvm] caa0f03 - [LICM] Fix typo in variable name (NFC) (#202889)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 01:24:47 PDT 2026


Author: Nikita Popov
Date: 2026-06-10T10:24:41+02:00
New Revision: caa0f0395f4fb95f1d51cd5fdddfe6fcdef038e9

URL: https://github.com/llvm/llvm-project/commit/caa0f0395f4fb95f1d51cd5fdddfe6fcdef038e9
DIFF: https://github.com/llvm/llvm-project/commit/caa0f0395f4fb95f1d51cd5fdddfe6fcdef038e9.diff

LOG: [LICM] Fix typo in variable name (NFC) (#202889)

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LICM.cpp

Removed: 
    


################################################################################
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