summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2014-12-14 09:43:50 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2014-12-14 09:43:50 +0000
commit3fcafa2cdb0d128507308a05555049d3424da2a5 (patch)
tree23bae75299c671e0cb6b2383915df4ea253d0899 /llvm/lib/Transforms
parent7f03920dad606b3ea5ae34f91de383adcdc32c10 (diff)
downloadbcm5719-llvm-3fcafa2cdb0d128507308a05555049d3424da2a5.tar.gz
bcm5719-llvm-3fcafa2cdb0d128507308a05555049d3424da2a5.zip
Loop Vectorizer minor changes in the code -
some comments, function names, identation. Reviewed here: http://reviews.llvm.org/D6527 llvm-svn: 224218
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index ef52da8e1a3..dca6a0c4bcd 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1871,7 +1871,7 @@ void InnerLoopVectorizer::vectorizeMemoryInstruction(Instruction *Instr) {
if (Reverse) {
// If the address is consecutive but reversed, then the
- // wide store needs to start at the last vector element.
+ // wide load needs to start at the last vector element.
PartPtr = Builder.CreateGEP(Ptr, Builder.getInt32(-Part * VF));
PartPtr = Builder.CreateGEP(PartPtr, Builder.getInt32(1 - VF));
}
@@ -5341,7 +5341,7 @@ bool LoopVectorizationLegality::blockCanBePredicated(BasicBlock *BB,
case Instruction::SDiv:
case Instruction::URem:
case Instruction::SRem:
- return false;
+ return false;
}
}
@@ -5385,7 +5385,7 @@ LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize) {
MaxVectorSize = 1;
}
- assert(MaxVectorSize <= 32 && "Did not expect to pack so many elements"
+ assert(MaxVectorSize <= 64 && "Did not expect to pack so many elements"
" into one vector!");
unsigned VF = MaxVectorSize;
OpenPOWER on IntegriCloud