diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-23 12:42:38 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-05-23 12:42:38 +0000 |
commit | ef74443c9748e09ad9cc7e4b1a842db56bfb7e32 (patch) | |
tree | c18fdb027b8b6f707d9a8b8da625e5d1210834e0 /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | e699370f3b2ed360bde109e8634739102ad51675 (diff) | |
download | bcm5719-llvm-ef74443c9748e09ad9cc7e4b1a842db56bfb7e32.tar.gz bcm5719-llvm-ef74443c9748e09ad9cc7e4b1a842db56bfb7e32.zip |
Duplicate part of the Region interface in the Scop class [NFC]
This allows to use the SCoP directly for various queries,
thus to hide the underlying region more often.
llvm-svn: 270426
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 729de9bec58..4eb1122f214 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -143,7 +143,7 @@ public: simplifyRegion(R, DT, LI, RI); assert(R->isSimple()); - BasicBlock *EnteringBB = S.getRegion().getEnteringBlock(); + BasicBlock *EnteringBB = S.getEnteringBlock(); assert(EnteringBB); PollyIRBuilder Builder = createPollyIRBuilder(EnteringBB, Annotator); @@ -182,7 +182,7 @@ public: assert(MergeBlock); markBlockUnreachable(*StartBlock, Builder); markBlockUnreachable(*ExitingBlock, Builder); - auto *ExitingBB = R->getExitingBlock(); + auto *ExitingBB = S.getExitingBlock(); assert(ExitingBB); DT->changeImmediateDominator(MergeBlock, ExitingBB); DT->eraseNode(ExitingBlock); |