[llvm] r185953 - Set the default insert point to the first instruction, and not to end()
Nadav Rotem
nrotem at apple.com
Tue Jul 9 10:55:36 PDT 2013
Author: nadav
Date: Tue Jul 9 12:55:36 2013
New Revision: 185953
URL: http://llvm.org/viewvc/llvm-project?rev=185953&view=rev
Log:
Set the default insert point to the first instruction, and not to end()
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=185953&r1=185952&r2=185953&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Tue Jul 9 12:55:36 2013
@@ -1217,7 +1217,7 @@ Value *BoUpSLP::vectorizeTree(TreeEntry
}
void BoUpSLP::vectorizeTree() {
- Builder.SetInsertPoint(&F->getEntryBlock());
+ Builder.SetInsertPoint(F->getEntryBlock().begin());
vectorizeTree(&VectorizableTree[0]);
// For each vectorized value:
More information about the llvm-commits
mailing list