Fix a build error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem 2013-01-20 09:39:17 +00:00
parent ba87320f00
commit e6e7606118

View File

@ -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() {