diff options
| author | Roman Divacky <rdivacky@freebsd.org> | 2012-10-17 21:07:35 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@freebsd.org> | 2012-10-17 21:07:35 +0000 |
| commit | 4955ec317cb75f9fe318f2969487b2638046148e (patch) | |
| tree | 7723fd5bfc78927f157cf5af7e8015e5faf61a11 /llvm/lib | |
| parent | 84ffa16de66585537515ec77f7ce971e146a06f9 (diff) | |
| download | bcm5719-llvm-4955ec317cb75f9fe318f2969487b2638046148e.tar.gz bcm5719-llvm-4955ec317cb75f9fe318f2969487b2638046148e.zip | |
Fix some typos and wrong indenting.
llvm-svn: 166128
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 60405e7f9f6..ce44db0f5e7 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -365,7 +365,7 @@ void SingleBlockLoopVectorizer::scalarizeInstruction(Instruction *Instr) { Cloned->setOperand(op, Op); } - // Place the clonsed scalar in the new loop. + // Place the cloned scalar in the new loop. Builder->Insert(Cloned); // If the original scalar returns a value we need to place it in a vector @@ -432,7 +432,7 @@ void SingleBlockLoopVectorizer::copyEmptyLoop() { PH->getTerminator()->setSuccessor(0, BB); Builder->SetInsertPoint(BB->getFirstInsertionPt()); - // Save the indiction variables. + // Save the induction variables. Induction = Phi; OldInduction = OldInd; } @@ -442,7 +442,7 @@ void SingleBlockLoopVectorizer::vectorizeLoop() { // For each instruction in the old loop. for (BasicBlock::iterator it = BB.begin(), e = BB.end(); it != e; ++it) { - Instruction *Inst = it; + Instruction *Inst = it; switch (Inst->getOpcode()) { case Instruction::PHI: @@ -677,7 +677,7 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) { } } - // IF this is a load, record its pointer. If it is not a load, abort. + // If this is a load, record its pointer. If it is not a load, abort. // Notice that we don't handle function calls that read or write. if (I->mayReadFromMemory()) { LoadInst *Ld = dyn_cast<LoadInst>(I); |

