Comments. Thanks for the spell check Nick!
authorAndrew Trick <atrick@apple.com>
Wed, 10 Aug 2011 18:07:05 +0000 (18:07 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 10 Aug 2011 18:07:05 +0000 (18:07 +0000)
Also, my apologies for spoiling the autocomplete on SimplifyInstructions.cpp. I couldn't think of a better filename.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137229 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopUnroll.cpp
lib/Transforms/Utils/SimplifyIndVar.cpp

index ad398537797a4c42ef717cef5778cc4d34908c40..62e4fa2953785eec397e6563a17ac51b913df1b5 100644 (file)
@@ -133,7 +133,7 @@ static BasicBlock *FoldBlockIntoPredecessor(BasicBlock *BB, LoopInfo* LI,
 /// removed from the LoopPassManager as well. LPM can also be NULL.
 ///
 /// This utility preserves LoopInfo. If DominatorTree or ScalarEvolution are
-/// available it must also preseve those analyses.
+/// available it must also preserve those analyses.
 bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
                       unsigned TripMultiple, LoopInfo *LI, LPPassManager *LPM) {
   BasicBlock *Preheader = L->getLoopPreheader();
@@ -380,7 +380,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
   }
 
   // FIXME: Reconstruct dom info, because it is not preserved properly.
-  // Incrementally updating domtree after loop unrolling woud be easy.
+  // Incrementally updating domtree after loop unrolling would be easy.
   if (DominatorTree *DT = LPM->getAnalysisIfAvailable<DominatorTree>())
     DT->runOnFunction(*L->getHeader()->getParent());
 
index 0cf372a53f3e4c7d7a057cc534776c3dc7cdc9f9..ffaad2717b4054d06b9c270b63c2c96d36a1d443 100644 (file)
@@ -86,7 +86,7 @@ namespace {
 /// aligned IV when used by a instruction that ignores the low bits.
 ///
 /// Return the operand of IVOperand for this induction variable if IVOperand can
-/// be folded (in case more folding opportunity has been exposed).
+/// be folded (in case more folding opportunities have been exposed).
 /// Otherwise return null.
 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) {
   Value *IVSrc = 0;
@@ -293,7 +293,7 @@ static void pushIVUsers(
 /// isSimpleIVUser - Return true if this instruction generates a simple SCEV
 /// expression in terms of that IV.
 ///
-/// This is similar to IVUsers' isInsteresting() but processes each instruction
+/// This is similar to IVUsers' isInteresting() but processes each instruction
 /// non-recursively when the operand is already known to be a simpleIVUser.
 ///
 static bool isSimpleIVUser(Instruction *I, const Loop *L, ScalarEvolution *SE) {