mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b198ca38f
commit
6a459e65c8
@ -2633,7 +2633,7 @@ LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize,
|
|||||||
|
|
||||||
if (MaxVectorSize == 0) {
|
if (MaxVectorSize == 0) {
|
||||||
DEBUG(dbgs() << "LV: The target has no vector registers.\n");
|
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"
|
assert(MaxVectorSize <= 32 && "Did not expect to pack so many elements"
|
||||||
|
Loading…
Reference in New Issue
Block a user