[llvm-commits] [llvm] r65306 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Sun Feb 22 21:56:19 PST 2009


Author: lattner
Date: Sun Feb 22 23:56:17 2009
New Revision: 65306

URL: http://llvm.org/viewvc/llvm-project?rev=65306&view=rev
Log:
fix some typos that Duncan noticed

Modified:
    llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=65306&r1=65305&r2=65306&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Sun Feb 22 23:56:17 2009
@@ -10219,7 +10219,7 @@
   }
   
   // If all of the base pointers of the PHI'd GEPs are from allocas, don't
-  // bother doing this transformation.  At best, this will just safe a bit of
+  // bother doing this transformation.  At best, this will just save a bit of
   // offset calculation, but all the predecessors will have to materialize the
   // stack address into a register anyway.  We'd actually rather *clone* the
   // load up into the predecessors so that we have a load of a gep of an alloca,
@@ -10265,8 +10265,8 @@
 }
 
 
-/// isSafeAndProfitableToSinkLoad - Return true if we know that it is safe sink
-/// the load out of the block that defines it.  This means that it must be
+/// isSafeAndProfitableToSinkLoad - Return true if we know that it is safe to
+/// sink the load out of the block that defines it.  This means that it must be
 /// obvious the value of the load is not changed from the point of the load to
 /// the end of the block it is in.
 ///





More information about the llvm-commits mailing list