[polly] r178530 - ScopDetection: Use isTopLevelRegion

Tobias Grosser grosser at fim.uni-passau.de
Mon Apr 1 23:41:48 PDT 2013


Author: grosser
Date: Tue Apr  2 01:41:48 2013
New Revision: 178530

URL: http://llvm.org/viewvc/llvm-project?rev=178530&view=rev
Log:
ScopDetection: Use isTopLevelRegion

Contributed-by: Star Tan <tanmx_star at yeah.net>

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

Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=178530&r1=178529&r2=178530&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Tue Apr  2 01:41:48 2013
@@ -542,7 +542,7 @@ bool ScopDetection::isValidRegion(Detect
   DEBUG(dbgs() << "Checking region: " << R.getNameStr() << "\n\t");
 
   // The toplevel region is no valid region.
-  if (!R.getParent()) {
+  if (R.isTopLevelRegion()) {
     DEBUG(dbgs() << "Top level region is invalid"; dbgs() << "\n");
     return false;
   }





More information about the llvm-commits mailing list