1
0
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:
Nadav Rotem 2013-06-21 04:18:13 +00:00
parent fcbaa2ff04
commit 232096ea37

View File

@ -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