summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-12-04 00:49:28 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-12-04 00:49:28 +0000
commit8b07bc579b8581b692fe26ebb73f39faacba09b9 (patch)
treebfcfccf6eb38de95c2327dcdc032c729a9656291 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent95759ff807498e79732669a2c2fa79c814342b9a (diff)
downloadbcm5719-llvm-8b07bc579b8581b692fe26ebb73f39faacba09b9.tar.gz
bcm5719-llvm-8b07bc579b8581b692fe26ebb73f39faacba09b9.zip
Fix whitespace.
llvm-svn: 169194
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 4dfe9069b63..b720c9733e0 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1091,7 +1091,7 @@ InnerLoopVectorizer::vectorizeLoop(LoopVectorizationLegality *Legal) {
// After broadcasting the induction variable we need to make the
// vector consecutive by adding 0, 1, 2 ...
Value *ConsecutiveInduction = getConsecutiveVector(Broadcasted);
-
+
WidenMap[OldInduction] = ConsecutiveInduction;
continue;
}
@@ -2067,7 +2067,7 @@ unsigned LoopVectorizationCostModel::expectedCost(unsigned VF) {
be = TheLoop->block_end(); bb != be; ++bb) {
unsigned BlockCost = 0;
BasicBlock *BB = *bb;
-
+
// For each instruction in the old loop.
for (BasicBlock::iterator it = BB->begin(), e = BB->end(); it != e; ++it) {
@@ -2081,7 +2081,7 @@ unsigned LoopVectorizationCostModel::expectedCost(unsigned VF) {
// calculate the loop nest level and multiply the cost accordingly.
if (Legal->blockNeedsPredication(*bb))
BlockCost *= 2;
-
+
Cost += BlockCost;
}
@@ -2265,4 +2265,3 @@ namespace llvm {
return new LoopVectorize();
}
}
-
OpenPOWER on IntegriCloud