Set the default insert point to the first instruction, and not to end()

llvm-svn: 185953
This commit is contained in:
Nadav Rotem 2013-07-09 17:55:36 +00:00
parent 2315c2e618
commit 861bef7dd0

View File

@ -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: