From 219feac45643d92784186bcee627d940775b596b Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 8 Aug 2016 15:25:50 +0000 Subject: [PATCH] [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 --- polly/lib/CodeGen/CodeGeneration.cpp | 1 - 1 file changed, 1 deletion(-) 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); -- 2.7.4