summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-01-18 01:47:30 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-01-18 01:47:30 +0000
commit6adcf56b0f738f66f32b2cc70e9117049672db89 (patch)
treeaf096bf21f74e4107a766bc5f9d549b245b504e7 /polly/lib/CodeGen
parent5eee895ccf9bea773e3c01f8915a9fba106e4f3f (diff)
downloadbcm5719-llvm-6adcf56b0f738f66f32b2cc70e9117049672db89.tar.gz
bcm5719-llvm-6adcf56b0f738f66f32b2cc70e9117049672db89.zip
[PM] Update Polly for LLVM r226385 which made LoopInfo actually derive
from LoopInfoBase<...>, removing the need for the awkward getBase() dance. llvm-svn: 226387
Diffstat (limited to 'polly/lib/CodeGen')
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp4
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp6
-rw-r--r--polly/lib/CodeGen/Utils.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index 401c005dc74..b80a25089ce 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -711,8 +711,8 @@ void IslNodeBuilder::createIf(__isl_take isl_ast_node *If) {
Loop *L = LI.getLoopFor(CondBB);
if (L) {
- L->addBasicBlockToLoop(ThenBB, LI.getBase());
- L->addBasicBlockToLoop(ElseBB, LI.getBase());
+ L->addBasicBlockToLoop(ThenBB, LI);
+ L->addBasicBlockToLoop(ElseBB, LI);
}
CondBB->getTerminator()->eraseFromParent();
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index af0413749d6..05ab6207904 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -80,11 +80,11 @@ Value *polly::createLoop(Value *LB, Value *UB, Value *Stride,
if (OuterLoop) {
if (GuardBB)
- OuterLoop->addBasicBlockToLoop(GuardBB, LI.getBase());
- OuterLoop->addBasicBlockToLoop(PreHeaderBB, LI.getBase());
+ OuterLoop->addBasicBlockToLoop(GuardBB, LI);
+ OuterLoop->addBasicBlockToLoop(PreHeaderBB, LI);
}
- NewLoop->addBasicBlockToLoop(HeaderBB, LI.getBase());
+ NewLoop->addBasicBlockToLoop(HeaderBB, LI);
// Notify the annotator (if present) that we have a new loop, but only
// after the header block is set.
diff --git a/polly/lib/CodeGen/Utils.cpp b/polly/lib/CodeGen/Utils.cpp
index c9b1d7199a8..87e3703edd6 100644
--- a/polly/lib/CodeGen/Utils.cpp
+++ b/polly/lib/CodeGen/Utils.cpp
@@ -60,7 +60,7 @@ BasicBlock *polly::executeScopConditionally(Scop &S, Pass *P, Value *RTC) {
Builder.SetInsertPoint(SplitBlock);
Builder.CreateCondBr(RTC, StartBlock, R.getEntry());
if (Loop *L = LI.getLoopFor(SplitBlock))
- L->addBasicBlockToLoop(StartBlock, LI.getBase());
+ L->addBasicBlockToLoop(StartBlock, LI);
DT.addNewBlock(StartBlock, SplitBlock);
Builder.SetInsertPoint(StartBlock);
OpenPOWER on IntegriCloud