Fix typos.
authorDan Gohman <gohman@apple.com>
Fri, 11 May 2007 21:10:54 +0000 (21:10 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 11 May 2007 21:10:54 +0000 (21:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36994 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/LoopRotation.cpp
lib/Transforms/Utils/LCSSA.cpp

index 4c120799d5da961613feb3f0e0a166d1dc936b85..01385db6c14f1990c991ce20e0dfb9f38f15f2d8 100644 (file)
@@ -6373,7 +6373,7 @@ Instruction *InstCombiner::commonCastTransforms(CastInst &CI) {
   if (isa<UndefValue>(Src))   // cast undef -> undef
     return ReplaceInstUsesWith(CI, UndefValue::get(CI.getType()));
 
-  // Many cases of "cast of a cast" are eliminable. If its eliminable we just
+  // Many cases of "cast of a cast" are eliminable. If it's eliminable we just
   // eliminate it now.
   if (CastInst *CSrc = dyn_cast<CastInst>(Src)) {   // A->B->C cast
     if (Instruction::CastOps opc = 
index 9532bcf3285293a99345dd1db7ae28028f81052f..6c44a9dd7515944f746c0f91296b0f8a1abcc6c3 100644 (file)
@@ -116,7 +116,7 @@ bool LoopRotate::runOnLoop(Loop *Lp, LPPassManager &LPM) {
   return RotatedOneLoop;
 }
 
-/// Rotate loop LP. Return true if it loop is rotated.
+/// Rotate loop LP. Return true if the loop is rotated.
 bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
 
   L = Lp;
@@ -130,7 +130,7 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
     return false;
 
   assert (OrigHeader && OrigLatch && OrigPreHeader &&
-          "Loop is not in cannocial form");
+          "Loop is not in canonical form");
 
   // If loop header is not one of the loop exit block then
   // either this loop is already rotated or it is not 
index 4cdafe7968422f449497334ed79e80a6635c46be..b51d7b51d36fcb8b10f4638ee42d3162bf660255 100644 (file)
@@ -12,7 +12,7 @@
 // the left into the right code:
 // 
 // for (...)                for (...)
-//   if (c)                   if(c)
+//   if (c)                   if (c)
 //     X1 = ...                 X1 = ...
 //   else                     else
 //     X2 = ...                 X2 = ...