summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2015-03-20 02:52:23 +0000
committerNick Lewycky <nicholas@mxc.ca>2015-03-20 02:52:23 +0000
commit2ce2832c9b841217947be154941d99343523c5ce (patch)
tree78e8cadaf899cfd5e239c8aec022daebf02047cd /llvm/lib/Analysis/ScalarEvolution.cpp
parentf049a68d7828e1254676dc67684585a777d66b1d (diff)
downloadbcm5719-llvm-2ce2832c9b841217947be154941d99343523c5ce.tar.gz
bcm5719-llvm-2ce2832c9b841217947be154941d99343523c5ce.zip
Fix comment from r232794. NFC
llvm-svn: 232796
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index cbc8a45a709..c3290e0a123 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1102,7 +1102,7 @@ const SCEV *ScalarEvolution::getTruncateExpr(const SCEV *Op,
return getTruncateOrZeroExtend(SZ->getOperand(), Ty);
// trunc(x1+x2+...+xN) --> trunc(x1)+trunc(x2)+...+trunc(xN) if we can
- // eliminate all the truncates, or we replace extensions with truncates.
+ // eliminate all the truncates, or we replace other casts with truncates.
if (const SCEVAddExpr *SA = dyn_cast<SCEVAddExpr>(Op)) {
SmallVector<const SCEV *, 4> Operands;
bool hasTrunc = false;
OpenPOWER on IntegriCloud