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 | 1c0aa2c3e902ee04948388b1f6de89b9f506bf89 (patch) | |
tree | 2addec29a7e6acc41c699ccec5e3607377654ad8 /lib/Analysis | |
parent | 49bda920fdcc8193af07e80a7dbcba065de257fa (diff) | |
download | external_llvm-1c0aa2c3e902ee04948388b1f6de89b9f506bf89.zip external_llvm-1c0aa2c3e902ee04948388b1f6de89b9f506bf89.tar.gz external_llvm-1c0aa2c3e902ee04948388b1f6de89b9f506bf89.tar.bz2 |
Update a comment to reflect the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 50fb557..9c6941f 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/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) |