diff options
author | Dan Gohman <gohman@apple.com> | 2009-06-18 16:24:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-06-18 16:24:47 +0000 |
commit | 5a728c908c556d72d4ef9c6355a21073cdfb76c2 (patch) | |
tree | a6e68381cdfcffbfade7b0db6fac8f70a914bd25 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | c5eb1ee4b720f4df58f9b50c5635662ebee05f49 (diff) | |
download | bcm5719-llvm-5a728c908c556d72d4ef9c6355a21073cdfb76c2.tar.gz bcm5719-llvm-5a728c908c556d72d4ef9c6355a21073cdfb76c2.zip |
Update a comment to reflect the code.
llvm-svn: 73704
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 50fb55785ab..9c6941f0d31 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -778,8 +778,7 @@ SCEVHandle ScalarEvolution::getTruncateExpr(const SCEVHandle &Op, if (const SCEVZeroExtendExpr *SZ = dyn_cast<SCEVZeroExtendExpr>(Op)) return getTruncateOrZeroExtend(SZ->getOperand(), Ty); - // If the input value is a chrec scev made out of constants, truncate - // all of the constants. + // If the input value is a chrec scev, truncate the chrec's operands. if (const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(Op)) { SmallVector<SCEVHandle, 4> Operands; for (unsigned i = 0, e = AddRec->getNumOperands(); i != e; ++i) |