summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-19 22:26:02 +0000
committerDan Gohman <gohman@apple.com>2010-01-19 22:26:02 +0000
commit510bffca45b8c6c4836cd66bc1d5c831977554d4 (patch)
tree4e35315b98c14e78429004703d9b15dd770c818c /llvm/lib/Analysis/ScalarEvolutionExpander.cpp
parentf86d904b7d9bd99013271527ed3252d4e0d14214 (diff)
downloadbcm5719-llvm-510bffca45b8c6c4836cd66bc1d5c831977554d4.tar.gz
bcm5719-llvm-510bffca45b8c6c4836cd66bc1d5c831977554d4.zip
Fix a typo and an 80-column violation in comments.
llvm-svn: 93931
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolutionExpander.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolutionExpander.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
index 7157d47dbcc..2c66f1ac2c5 100644
--- a/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/llvm/lib/Analysis/ScalarEvolutionExpander.cpp
@@ -323,7 +323,7 @@ static void SplitAddRecs(SmallVectorImpl<const SCEV *> &Ops,
/// http://llvm.org/docs/LangRef.html#pointeraliasing
/// for details.
///
-/// Design note: The correctness of using getelmeentptr here depends on
+/// Design note: The correctness of using getelementptr here depends on
/// ScalarEvolution not recognizing inttoptr and ptrtoint operators, as
/// they may introduce pointer arithmetic which may not be safely converted
/// into getelementptr.
@@ -687,8 +687,8 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
for (pred_iterator HPI = pred_begin(Header), HPE = pred_end(Header);
HPI != HPE; ++HPI)
if (L->contains(*HPI)) {
- // Insert a unit add instruction right before the terminator corresponding
- // to the back-edge.
+ // Insert a unit add instruction right before the terminator
+ // corresponding to the back-edge.
Instruction *Add = BinaryOperator::CreateAdd(PN, One, "indvar.next",
(*HPI)->getTerminator());
InsertedValues.insert(Add);
OpenPOWER on IntegriCloud