summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-01-15 18:25:16 +0000
committerNadav Rotem <nrotem@apple.com>2013-01-15 18:25:16 +0000
commitd33ce6f100003ea4bf57af9b7585248576e23edb (patch)
tree41afc37241a080143f19f19f5d153834c064485d /llvm/lib/Transforms
parent57ad4297a3f3b15bde4190611781fdda1b94f7db (diff)
downloadbcm5719-llvm-d33ce6f100003ea4bf57af9b7585248576e23edb.tar.gz
bcm5719-llvm-d33ce6f100003ea4bf57af9b7585248576e23edb.zip
LoopVectorizer cost model. Honor the user command line flag that selects the vectorization factor even if the target machine does not have any vector registers.
llvm-svn: 172544
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 464ed97506f..bc8e1217bea 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2633,7 +2633,7 @@ LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize,
if (MaxVectorSize == 0) {
DEBUG(dbgs() << "LV: The target has no vector registers.\n");
- return 1;
+ MaxVectorSize = 1;
}
assert(MaxVectorSize <= 32 && "Did not expect to pack so many elements"
OpenPOWER on IntegriCloud