OSDN Git Service

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 55adf8a..6f36c93 100644 (file)
@@ -633,6 +633,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL, int VF) {
   numberInstructions();
   MustScalarize.clear();
   MustExtract.clear();
+  VectorizedValues.clear();
   return V;
 }