mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
SLPVectorizer: Try vectorizing 'splat' stores
Vectorize sequential stores of a broadcasted value. 5% on eon. radar://16124699 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202067 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1101,11 +1101,15 @@ bool BoUpSLP::isFullyVectorizableTinyTree() {
|
||||
if (VectorizableTree.size() != 2)
|
||||
return false;
|
||||
|
||||
// Gathering cost would be too much for tiny trees.
|
||||
if (VectorizableTree[0].NeedToGather || VectorizableTree[1].NeedToGather)
|
||||
return false;
|
||||
// Handle splat stores.
|
||||
if (!VectorizableTree[0].NeedToGather && isSplat(VectorizableTree[1].Scalars))
|
||||
return true;
|
||||
|
||||
return true;
|
||||
// Gathering cost would be too much for tiny trees.
|
||||
if (VectorizableTree[0].NeedToGather || VectorizableTree[1].NeedToGather)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
int BoUpSLP::getTreeCost() {
|
||||
|
Reference in New Issue
Block a user