SLPVectorizer: Fix a bug in the code that scans the tree in search of nodes with...
authorNadav Rotem <nrotem@apple.com>
Sun, 21 Apr 2013 07:37:56 +0000 (07:37 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 21 Apr 2013 07:37:56 +0000 (07:37 +0000)
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

index 03dd5c732665bd89192cf46df406cdc57ff66fda..7701d080ffd859ee882a3a303d77664b9599e0e0 100644 (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;