[llvm-commits] [llvm] r172971 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Nadav Rotem
nrotem at apple.com
Sun Jan 20 01:39:17 PST 2013
Author: nadav
Date: Sun Jan 20 03:39:17 2013
New Revision: 172971
URL: http://llvm.org/viewvc/llvm-project?rev=172971&view=rev
Log:
Fix a build error.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=172971&r1=172970&r2=172971&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sun Jan 20 03:39:17 2013
@@ -1593,7 +1593,7 @@
// 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 @@
}
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() {
More information about the llvm-commits
mailing list