From c7ffbc019fdc6ae5265f1841eaabae34e301f59b Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Sun, 7 Jul 2013 14:57:18 +0000 Subject: [PATCH] Clear the builder insert point between tree-vectorization phases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185777 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index d2e7450d248..136eaffb603 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1292,6 +1292,7 @@ void BoUpSLP::vectorizeTree() { for (Function::iterator it = F->begin(), e = F->end(); it != e; ++it) { BlocksNumbers[it].forget(); } + Builder.ClearInsertionPoint(); } void BoUpSLP::optimizeGatherSequence() {