Skip to content

Commit

Permalink
[ScopBuilder] Remove superfluous while loop in buildDomains. NFC.
Browse files Browse the repository at this point in the history
The while loop iterating parent loop in ScopBuilder::buildDomains is
unnecessary because either L or LD are later unused, this is a simple
patch removing it.

Patch by bin.narwal <bin.narwal@gmail.com>

Differential Revision: https://reviews.llvm.org/D66698

llvm-svn: 370368
  • Loading branch information
Meinersbur committed Aug 29, 2019
1 parent 1c4cd49 commit 6220ce6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions polly/lib/Analysis/ScopBuilder.cpp
Expand Up @@ -831,10 +831,6 @@ bool ScopBuilder::buildDomains(
auto *S =
isl_set_universe(isl_space_set_alloc(scop->getIslCtx().get(), 0, LD + 1));

while (LD-- >= 0) {
L = L->getParentLoop();
}

InvalidDomainMap[EntryBB] = isl::manage(isl_set_empty(isl_set_get_space(S)));
isl::noexceptions::set Domain = isl::manage(S);
scop->setDomain(EntryBB, Domain);
Expand Down

0 comments on commit 6220ce6

Please sign in to comment.