From: Nadav Rotem Date: Tue, 9 Jul 2013 17:55:36 +0000 (+0000) Subject: Set the default insert point to the first instruction, and not to end() X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=29b741942807bc4c0441d98f1330b70446794b88;p=oota-llvm.git Set the default insert point to the first instruction, and not to end() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index cfb5be77a4a..93ff1f7e5b5 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1217,7 +1217,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) { } void BoUpSLP::vectorizeTree() { - Builder.SetInsertPoint(&F->getEntryBlock()); + Builder.SetInsertPoint(F->getEntryBlock().begin()); vectorizeTree(&VectorizableTree[0]); // For each vectorized value: