[PATCH] D157220: [Analysis] Fix typo in comments

Mehmet Eymen √únay via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 6 04:27:52 PDT 2023


Eymay created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Eymay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157220

Files:
  llvm/include/llvm/Analysis/LoopAnalysisManager.h
  llvm/lib/Analysis/IRSimilarityIdentifier.cpp


Index: llvm/lib/Analysis/IRSimilarityIdentifier.cpp
===================================================================
--- llvm/lib/Analysis/IRSimilarityIdentifier.cpp
+++ llvm/lib/Analysis/IRSimilarityIdentifier.cpp
@@ -55,7 +55,7 @@
 void IRInstructionData::initializeInstruction() {
   // We check for whether we have a comparison instruction.  If it is, we
   // find the "less than" version of the predicate for consistency for
-  // comparison instructions throught the program.
+  // comparison instructions throughout the program.
   if (CmpInst *C = dyn_cast<CmpInst>(Inst)) {
     CmpInst::Predicate Predicate = predicateForConsistency(C);
     if (Predicate != C->getPredicate())
Index: llvm/include/llvm/Analysis/LoopAnalysisManager.h
===================================================================
--- llvm/include/llvm/Analysis/LoopAnalysisManager.h
+++ llvm/include/llvm/Analysis/LoopAnalysisManager.h
@@ -90,7 +90,7 @@
   Result(Result &&Arg)
       : InnerAM(std::move(Arg.InnerAM)), LI(Arg.LI), MSSAUsed(Arg.MSSAUsed) {
     // We have to null out the analysis manager in the moved-from state
-    // because we are taking ownership of the responsibilty to clear the
+    // because we are taking ownership of the responsibility to clear the
     // analysis state.
     Arg.InnerAM = nullptr;
   }
@@ -99,7 +99,7 @@
     LI = RHS.LI;
     MSSAUsed = RHS.MSSAUsed;
     // We have to null out the analysis manager in the moved-from state
-    // because we are taking ownership of the responsibilty to clear the
+    // because we are taking ownership of the responsibility to clear the
     // analysis state.
     RHS.InnerAM = nullptr;
     return *this;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157220.547558.patch
Type: text/x-patch
Size: 1681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230806/74af2234/attachment.bin>


More information about the llvm-commits mailing list