diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-01-15 18:25:16 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-01-15 18:25:16 +0000 |
commit | d33ce6f100003ea4bf57af9b7585248576e23edb (patch) | |
tree | 41afc37241a080143f19f19f5d153834c064485d /llvm/lib/Transforms | |
parent | 57ad4297a3f3b15bde4190611781fdda1b94f7db (diff) | |
download | bcm5719-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.cpp | 2 |
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" |