[llvm-commits] [llvm] r94765 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Bill Wendling isanbard at gmail.com
Thu Jan 28 16:27:39 PST 2010


Author: void
Date: Thu Jan 28 18:27:39 2010
New Revision: 94765

URL: http://llvm.org/viewvc/llvm-project?rev=94765&view=rev
Log:
Add newline to debugging output, and fix some grammar-os in comment.

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

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

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Thu Jan 28 18:27:39 2010
@@ -1615,7 +1615,7 @@
       DEBUG(dbgs() << " use ");
       DEBUG(WriteAsOperand(dbgs(), UsersToProcess.back().OperandValToReplace,
                            /*PrintType=*/false));
-      DEBUG(dbgs() << " in Inst: " << *User.Inst);
+      DEBUG(dbgs() << " in Inst: " << *User.Inst << '\n');
 
       // If this instruction wants to use the post-incremented value, move it
       // after the post-inc and use its value instead of the PHI.
@@ -1801,10 +1801,10 @@
   };
 }
 
-/// ChangeCompareStride - If a loop termination compare instruction is the
-/// only use of its stride, and the compaison is against a constant value,
-/// try eliminate the stride by moving the compare instruction to another
-/// stride and change its constant operand accordingly. e.g.
+/// ChangeCompareStride - If a loop termination compare instruction is the only
+/// use of its stride, and the comparison is against a constant value, try to
+/// eliminate the stride by moving the compare instruction to another stride and
+/// changing its constant operand accordingly. E.g.
 ///
 /// loop:
 /// ...





More information about the llvm-commits mailing list