[llvm] 172c36a - Fix typos in CodeGenPrepare::splitLargeGEPOffsets comments.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 06:22:54 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-25T14:22:19+01:00
New Revision: 172c36a100db518c7e09594bd5a5535a10dc4dd5

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

LOG: Fix typos in CodeGenPrepare::splitLargeGEPOffsets comments.

Added: 
    

Modified: 
    llvm/lib/CodeGen/CodeGenPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 71a846e8d890..751cc100e92c 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -5577,9 +5577,9 @@ bool CodeGenPrepare::mergeSExts(Function &F) {
   return Changed;
 }
 
-// Spliting large data structures so that the GEPs accessing them can have
+// Splitting large data structures so that the GEPs accessing them can have
 // smaller offsets so that they can be sunk to the same blocks as their users.
-// For example, a large struct starting from %base is splitted into two parts
+// For example, a large struct starting from %base is split into two parts
 // where the second part starts from %new_base.
 //
 // Before:
@@ -5654,7 +5654,7 @@ bool CodeGenPrepare::splitLargeGEPOffsets() {
                                         GEP->getAddressSpace())) {
           // We need to create a new base if the offset to the current base is
           // too large to fit into the addressing mode. So, a very large struct
-          // may be splitted into several parts.
+          // may be split into several parts.
           BaseGEP = GEP;
           BaseOffset = Offset;
           NewBaseGEP = nullptr;


        


More information about the llvm-commits mailing list