[llvm-commits] [llvm] r64465 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Dan Gohman
gohman at apple.com
Fri Feb 13 09:36:42 PST 2009
Author: djg
Date: Fri Feb 13 11:36:42 2009
New Revision: 64465
URL: http://llvm.org/viewvc/llvm-project?rev=64465&view=rev
Log:
Complete the sentance in this comment. I have reservations
about the code it describes, but at least now the comment
is right.
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=64465&r1=64464&r2=64465&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Fri Feb 13 11:36:42 2009
@@ -1912,6 +1912,7 @@
UsersToProcess);
// Avoid rewriting the compare instruction with an iv of new stride
// if it's likely the new stride uses will be rewritten using the
+ // stride of the compare instruction.
if (AllUsesAreAddresses &&
ValidStride(!CommonExprs->isZero(), Scale, UsersToProcess)) {
NewCmpVal = CmpVal;
More information about the llvm-commits
mailing list