From bd65805016562bd0eed157123e9998d8916c3088 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Sun, 21 Apr 2013 07:37:56 +0000 Subject: [PATCH] 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 --- lib/Transforms/Vectorize/VecUtils.cpp | 1 + 1 file changed, 1 insertion(+) 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;