mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
SLP Vectorizer: do not search for store-chains that are wider than the vector-register size.
llvm-svn: 184527
This commit is contained in:
parent
fcbaa2ff04
commit
232096ea37
@ -141,9 +141,11 @@ bool BoUpSLP::vectorizeStoreChain(ArrayRef<Value *> Chain, int CostThreshold) {
|
||||
}
|
||||
}
|
||||
|
||||
if (Changed)
|
||||
return true;
|
||||
if (Changed || ChainLen > VF)
|
||||
return Changed;
|
||||
|
||||
// Handle short chains. This helps us catch types such as <3 x float> that
|
||||
// are smaller than vector size.
|
||||
int Cost = getTreeCost(Chain);
|
||||
if (Cost < CostThreshold) {
|
||||
DEBUG(dbgs() << "SLP: Found store chain cost = " << Cost
|
||||
|
Loading…
Reference in New Issue
Block a user