Correct a few comments.
authorDan Gohman <gohman@apple.com>
Mon, 14 May 2007 14:31:17 +0000 (14:31 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 14 May 2007 14:31:17 +0000 (14:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopUnroll.cpp

index c79ec3f3861745d81f3c573a6488baf469d48690..babfc2437ee2c72a0b722ce5b299d2d7328807f5 100644 (file)
@@ -168,7 +168,7 @@ BasicBlock *LoopUnroll::FoldBlockIntoPredecessor(BasicBlock *BB) {
   LI->removeBlock(BB);
   BB->eraseFromParent();
 
-  // Inherit predecessors name if it exists...
+  // Inherit predecessor's name if it exists...
   if (!OldName.empty() && !OnlyPred->hasName())
     OnlyPred->setName(OldName);
 
@@ -191,10 +191,10 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
 }
 
 /// Unroll the given loop by UnrollCount, or by a heuristically-determined
-/// value if Count is zero. If Threshold is non-NULL, it points to
-/// a Threshold value to limit code size expansion. If the loop size would
-/// expand beyond the threshold value, unrolling is suppressed. The return
-/// value is false if no transformations are performed.
+/// value if Count is zero. If Threshold is not NoThreshold, it is a value
+/// to limit code size expansion. If the loop size would expand beyond the
+/// threshold value, unrolling is suppressed. The return value is true if
+/// any transformations are performed.
 ///
 bool LoopUnroll::unrollLoop(Loop *L, unsigned Count, unsigned Threshold) {
   assert(L->isLCSSAForm());