diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-19 22:26:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-19 22:26:02 +0000 |
commit | 3abf905b50f33340ae81913da81b0eda96fa4616 (patch) | |
tree | c1af36a253a546a1118f9a2e56045ef9403fa38f /lib | |
parent | 1cd9275c8d612bd1c92fc7ba436b60aaead1efbf (diff) | |
download | external_llvm-3abf905b50f33340ae81913da81b0eda96fa4616.zip external_llvm-3abf905b50f33340ae81913da81b0eda96fa4616.tar.gz external_llvm-3abf905b50f33340ae81913da81b0eda96fa4616.tar.bz2 |
Fix a typo and an 80-column violation in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ScalarEvolutionExpander.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 7157d47..2c66f1a 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/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); |