diff options
author | Tobias Grosser <tobias@grosser.es> | 2016-08-08 15:25:50 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2016-08-08 15:25:50 +0000 |
commit | 219feac45643d92784186bcee627d940775b596b (patch) | |
tree | 3d2b7b39c50caa21f5e127bc66e36232f976c879 | |
parent | 000db70754841d2e86b7a72029f21e3e2fbdc981 (diff) | |
download | bcm5719-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.cpp | 1 |
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); |