[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp LoopRotation.cpp

Dan Gohman djg at cray.com
Fri May 11 14:11:18 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.764 -> 1.765
LoopRotation.cpp updated: 1.13 -> 1.14
---
Log message:

Fix typos.


---
Diffs of the changes:  (+3 -3)

 InstructionCombining.cpp |    2 +-
 LoopRotation.cpp         |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.764 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.765
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.764	Fri May 11 11:58:45 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Fri May 11 16:10:54 2007
@@ -6373,7 +6373,7 @@
   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: llvm/lib/Transforms/Scalar/LoopRotation.cpp
diff -u llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.13 llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.14
--- llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.13	Wed May  2 20:11:54 2007
+++ llvm/lib/Transforms/Scalar/LoopRotation.cpp	Fri May 11 16:10:54 2007
@@ -116,7 +116,7 @@
   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 @@
     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 






More information about the llvm-commits mailing list