Remove redundant SetInsertPoint call.
authorJakub Staszak <kubastaszak@gmail.com>
Wed, 17 Oct 2012 23:06:37 +0000 (23:06 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Wed, 17 Oct 2012 23:06:37 +0000 (23:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index ce44db0f5e7de6922355b625c7ab8957a6d0975a..b256155ebaf9c8642a471deaa522ede90a9d5061 100644 (file)
@@ -398,7 +398,6 @@ void SingleBlockLoopVectorizer::copyEmptyLoop() {
   // Use this IR builder to create the loop instructions (Phi, Br, Cmp)
   // inside the loop.
   Builder = new IRBuilder<>(BB);
-  Builder->SetInsertPoint(BB);
 
   // Generate the induction variable.
   PHINode *Phi = Builder->CreatePHI(IdxTy, 2, "index");