[polly] r265413 - Remove dead code and comment [NFC]

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 09:18:53 PDT 2016


Author: jdoerfert
Date: Tue Apr  5 11:18:53 2016
New Revision: 265413

URL: http://llvm.org/viewvc/llvm-project?rev=265413&view=rev
Log:
Remove dead code and comment [NFC]


Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=265413&r1=265412&r2=265413&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Apr  5 11:18:53 2016
@@ -2512,19 +2512,9 @@ void Scop::propagateDomainConstraints(Re
       }
     }
 
-    // Get the domain for the current block and check if it was initialized or
-    // not. The only way it was not is if this block is only reachable via error
-    // blocks, thus will not be executed under the assumptions we make. Such
-    // blocks have to be skipped as their predecessors might not have domains
-    // either. It would not benefit us to compute the domain anyway, only the
-    // domains of the error blocks that are reachable from non-error blocks
-    // are needed to generate assumptions.
     BasicBlock *BB = getRegionNodeBasicBlock(RN);
     isl_set *&Domain = DomainMap[BB];
-    if (!Domain) {
-      DomainMap.erase(BB);
-      continue;
-    }
+    assert(Domain);
 
     // Under the union of all predecessor conditions we can reach this block.
     auto *PredDom = getPredecessorDomainConstraints(BB, Domain, SD, DT, LI);




More information about the llvm-commits mailing list