SLPVectorizer: Fix a bug in the code that scans the tree in search of nodes with multiple users.

We did not terminate the switch case and we executed the search routine twice.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem 2013-04-21 07:37:56 +00:00
parent 899b2f9d0b
commit bd65805016

View File

@ -354,6 +354,7 @@ void BoUpSLP::getTreeUses_rec(ArrayRef<Value *> VL, unsigned Depth) {
getTreeUses_rec(Operands, Depth+1);
}
return;
}
case Instruction::Store: {
ValueList Operands;