diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2016-05-23 13:00:41 +0000 |
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2016-05-23 13:00:41 +0000 |
| commit | 996fb611b3f28a7f504ae424f386eabdfa84af1d (patch) | |
| tree | e0485838277f50774b8c54b25f3e98ee6610d24a /polly/lib/CodeGen | |
| parent | 4adbf23e1fa2099390e1ff1a115bb9626ca0bf08 (diff) | |
| download | bcm5719-llvm-996fb611b3f28a7f504ae424f386eabdfa84af1d.tar.gz bcm5719-llvm-996fb611b3f28a7f504ae424f386eabdfa84af1d.zip | |
Remove some unused local variables. NFC.
Found by clang static analyzer (http://llvm.org/reports/scan-build/)
and Visual Studio.
llvm-svn: 270432
Diffstat (limited to 'polly/lib/CodeGen')
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 93a2a464c77..30291e284c8 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -1078,8 +1078,6 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT <S, assert(Stmt.isRegionStmt() && "Only region statements can be copied by the region generator"); - Scop *S = Stmt.getParent(); - // Forget all old mappings. BlockMap.clear(); RegionMaps.clear(); @@ -1106,17 +1104,6 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT <S, if (!R->contains(*PI)) BlockMap[*PI] = EntryBBCopy; - // Determine the original exit block of this subregion. If it the exit block - // is also the scop's exit, it it has been changed to polly.merge_new_and_old. - // We move one block back to find the original block. This only happens if the - // scop required simplification. - // If the whole scop consists of only this non-affine region, then they share - // the same Region object, such that we cannot change the exit of one and not - // the other. - BasicBlock *ExitBB = R->getExit(); - if (!S->hasSingleExitEdge() && ExitBB == S->getExit()) - ExitBB = *(++pred_begin(ExitBB)); - // Iterate over all blocks in the region in a breadth-first search. std::deque<BasicBlock *> Blocks; SmallPtrSet<BasicBlock *, 8> SeenBlocks; |

