diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-01-20 09:39:17 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-01-20 09:39:17 +0000 |
commit | da9f2adffd6bf4efbc6ddec07244e9cff5dad5bf (patch) | |
tree | 444c285993aa717d2735f2f5f60a71a7709524b5 | |
parent | 0ad0f5ebe402acb01040b54ba08901ca29e8e4f2 (diff) | |
download | bcm5719-llvm-da9f2adffd6bf4efbc6ddec07244e9cff5dad5bf.tar.gz bcm5719-llvm-da9f2adffd6bf4efbc6ddec07244e9cff5dad5bf.zip |
Fix a build error.
llvm-svn: 172971
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index bb8b428c3c2..3013c2d6639 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1593,7 +1593,7 @@ InnerLoopVectorizer::vectorizeBlockInLoop(LoopVectorizationLegality *Legal, // optimizations will clean it up. VectorParts Cond = createEdgeMask(P->getIncomingBlock(0), P->getParent()); - + for (unsigned part = 0; part < UF; ++part) { VectorParts &In0 = getVectorValue(P->getIncomingValue(0)); VectorParts &In1 = getVectorValue(P->getIncomingValue(1)); @@ -2713,7 +2713,8 @@ LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize, } DEBUG(dbgs() << "LV: Selecting VF = : "<< Width << ".\n"); - return std::make_pair<unsigned, unsigned>(Width, VF * Cost); + unsigned LoopCost = VF * Cost; + return std::make_pair<unsigned, unsigned>(Width, LoopCost); } unsigned LoopVectorizationCostModel::getWidestType() { |