summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-04-21 07:37:56 +0000
committerNadav Rotem <nrotem@apple.com>2013-04-21 07:37:56 +0000
commit98ad5f0f4c6a5dda316df2e18f1c0eb885fa94d3 (patch)
tree0caee642290b73d4595b7adbad397d8cb798a21f /llvm/lib
parentd5b701faf1976056cd625f84e2dc7e860dff1100 (diff)
downloadbcm5719-llvm-98ad5f0f4c6a5dda316df2e18f1c0eb885fa94d3.tar.gz
bcm5719-llvm-98ad5f0f4c6a5dda316df2e18f1c0eb885fa94d3.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/VecUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VecUtils.cpp b/llvm/lib/Transforms/Vectorize/VecUtils.cpp
index 03dd5c73266..7701d080ffd 100644
--- a/llvm/lib/Transforms/Vectorize/VecUtils.cpp
+++ b/llvm/lib/Transforms/Vectorize/VecUtils.cpp
@@ -354,6 +354,7 @@ void BoUpSLP::getTreeUses_rec(ArrayRef<Value *> VL, unsigned Depth) {
getTreeUses_rec(Operands, Depth+1);
}
+ return;
}
case Instruction::Store: {
ValueList Operands;
OpenPOWER on IntegriCloud