From: Nadav Rotem Date: Sun, 21 Apr 2013 07:37:56 +0000 (+0000) Subject: SLPVectorizer: Fix a bug in the code that scans the tree in search of nodes with... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bd65805016562bd0eed157123e9998d8916c3088;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Vectorize/VecUtils.cpp b/lib/Transforms/Vectorize/VecUtils.cpp index 03dd5c73266..7701d080ffd 100644 --- a/lib/Transforms/Vectorize/VecUtils.cpp +++ b/lib/Transforms/Vectorize/VecUtils.cpp @@ -354,6 +354,7 @@ void BoUpSLP::getTreeUses_rec(ArrayRef VL, unsigned Depth) { getTreeUses_rec(Operands, Depth+1); } + return; } case Instruction::Store: { ValueList Operands;