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.

llvm-svn: 179974
This commit is contained in:
Nadav Rotem 2013-04-21 07:37:56 +00:00
parent d5b701faf1
commit 98ad5f0f4c
1 changed files with 1 additions and 0 deletions

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;