From: Tobias Grosser Date: Mon, 8 Aug 2016 15:25:50 +0000 (+0000) Subject: [CodeGeneration] Do not set insert position redundantly X-Git-Tag: llvmorg-4.0.0-rc1~13055 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=219feac45643d92784186bcee627d940775b596b;p=platform%2Fupstream%2Fllvm.git [CodeGeneration] Do not set insert position redundantly There is no need to reset the position of the builder, as we can just continue to insert code at the current position of the IRBuilder, which happens to be precisely the location we reset the builder to. llvm-svn: 278014 --- diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 4550a05..b13118c 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -73,7 +73,6 @@ public: /// /// @return A value evaluating to true/false if execution is save/unsafe. Value *buildRTC(PollyIRBuilder &Builder, IslExprBuilder &ExprBuilder) { - Builder.SetInsertPoint(Builder.GetInsertBlock()->getTerminator()); Value *RTC = ExprBuilder.create(AI->getRunCondition()); if (!RTC->getType()->isIntegerTy(1)) RTC = Builder.CreateIsNotNull(RTC);