summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-08-08 15:25:50 +0000
committerTobias Grosser <tobias@grosser.es>2016-08-08 15:25:50 +0000
commit219feac45643d92784186bcee627d940775b596b (patch)
tree3d2b7b39c50caa21f5e127bc66e36232f976c879
parent000db70754841d2e86b7a72029f21e3e2fbdc981 (diff)
downloadbcm5719-llvm-219feac45643d92784186bcee627d940775b596b.tar.gz
bcm5719-llvm-219feac45643d92784186bcee627d940775b596b.zip
[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
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index 4550a0598aa..b13118c57d0 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);
OpenPOWER on IntegriCloud