aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-06-25 11:52:55 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-06-25 14:22:19 +0100
commit172c36a100db518c7e09594bd5a5535a10dc4dd5 (patch)
treead6eb12b7fe7669dbb69050c17ab31bbcd0353ee /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent2e7bba693ef8fc5b3e6338fe4f45bf239fa6cca9 (diff)
downloadllvm-172c36a100db518c7e09594bd5a5535a10dc4dd5.zip
llvm-172c36a100db518c7e09594bd5a5535a10dc4dd5.tar.gz
llvm-172c36a100db518c7e09594bd5a5535a10dc4dd5.tar.bz2
Fix typos in CodeGenPrepare::splitLargeGEPOffsets comments.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 71a846e..751cc10 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;