From: Nadav Rotem Date: Sun, 20 Jan 2013 09:39:17 +0000 (+0000) Subject: Fix a build error. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6e7606118d6862747a84ecfb0d70f3c0cf601af;p=oota-llvm.git Fix a build error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172971 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index bb8b428c3c2..3013c2d6639 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/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(Width, VF * Cost); + unsigned LoopCost = VF * Cost; + return std::make_pair(Width, LoopCost); } unsigned LoopVectorizationCostModel::getWidestType() {