SLPVectorizer: Clear the map that maps between scalars to vectors after each round...
authorNadav Rotem <nrotem@apple.com>
Sun, 12 May 2013 22:55:57 +0000 (22:55 +0000)
committerNadav Rotem <nrotem@apple.com>
Sun, 12 May 2013 22:55:57 +0000 (22:55 +0000)
Testcase in the next commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181673 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/VecUtils.cpp

index 55adf8a8161ce58b8907694af631efdf7ba4bf4d..6f36c938fa5d1d3848de6aaf226a3e7eb43b50a0 100644 (file)
@@ -633,6 +633,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL, int VF) {
   numberInstructions();
   MustScalarize.clear();
   MustExtract.clear();
+  VectorizedValues.clear();
   return V;
 }