summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-13 17:36:42 +0000
committerDan Gohman <gohman@apple.com>2009-02-13 17:36:42 +0000
commita2730abaaacb1dbe88403bef7e914a459a29a78f (patch)
tree081a5a42793e4657625d176ef517a20e1768b971 /llvm
parenta738e8b854f73bdce88f1c3ccbee9f8a56951d09 (diff)
downloadbcm5719-llvm-a2730abaaacb1dbe88403bef7e914a459a29a78f.tar.gz
bcm5719-llvm-a2730abaaacb1dbe88403bef7e914a459a29a78f.zip
Complete the sentance in this comment. I have reservations
about the code it describes, but at least now the comment is right. llvm-svn: 64465
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 06d683cab96..db5479b3c47 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -1912,6 +1912,7 @@ ICmpInst *LoopStrengthReduce::ChangeCompareStride(Loop *L, ICmpInst *Cond,
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;
OpenPOWER on IntegriCloud