aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/GlobalsModRef.cpp
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2019-02-05 08:30:48 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2019-02-05 08:30:48 +0000
commit02a2bb2f54659e7830946bd20ee121ce7d80ff65 (patch)
tree8a5e425f5eaeb24395609d5934f142f58fa9c67d /llvm/lib/Analysis/GlobalsModRef.cpp
parentccd4e5e01684f7f05ea329a475a0b7a62b311039 (diff)
downloadllvm-02a2bb2f54659e7830946bd20ee121ce7d80ff65.zip
llvm-02a2bb2f54659e7830946bd20ee121ce7d80ff65.tar.gz
llvm-02a2bb2f54659e7830946bd20ee121ce7d80ff65.tar.bz2
[NFC] fix trivial typos in comments
llvm-svn: 353147
Diffstat (limited to 'llvm/lib/Analysis/GlobalsModRef.cpp')
-rw-r--r--llvm/lib/Analysis/GlobalsModRef.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/GlobalsModRef.cpp b/llvm/lib/Analysis/GlobalsModRef.cpp
index 5ec1a06..4649b30 100644
--- a/llvm/lib/Analysis/GlobalsModRef.cpp
+++ b/llvm/lib/Analysis/GlobalsModRef.cpp
@@ -596,7 +596,7 @@ void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) {
}
// All non-call instructions we use the primary predicates for whether
- // thay read or write memory.
+ // they read or write memory.
if (I.mayReadFromMemory())
FI.addModRefInfo(ModRefInfo::Ref);
if (I.mayWriteToMemory())
@@ -790,10 +790,10 @@ bool GlobalsAAResult::isNonEscapingGlobalNoAlias(const GlobalValue *GV,
}
// FIXME: It would be good to handle other obvious no-alias cases here, but
- // it isn't clear how to do so reasonbly without building a small version
+ // it isn't clear how to do so reasonably without building a small version
// of BasicAA into this code. We could recurse into AAResultBase::alias
// here but that seems likely to go poorly as we're inside the
- // implementation of such a query. Until then, just conservatievly retun
+ // implementation of such a query. Until then, just conservatively return
// false.
return false;
} while (!Inputs.empty());