mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
[SLP] Vectorize for all-constant entries.
Differential Revision: http://reviews.llvm.org/D10531 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1637,8 +1637,10 @@ bool BoUpSLP::isFullyVectorizableTinyTree() {
|
||||
if (VectorizableTree.size() != 2)
|
||||
return false;
|
||||
|
||||
// Handle splat stores.
|
||||
if (!VectorizableTree[0].NeedToGather && isSplat(VectorizableTree[1].Scalars))
|
||||
// Handle splat and all-constants stores.
|
||||
if (!VectorizableTree[0].NeedToGather &&
|
||||
(allConstant(VectorizableTree[1].Scalars) ||
|
||||
isSplat(VectorizableTree[1].Scalars)))
|
||||
return true;
|
||||
|
||||
// Gathering cost would be too much for tiny trees.
|
||||
|
Reference in New Issue
Block a user