[polly] r334412 - [ScopBuilder] Slightly improve code structure [NFCI]

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 07:59:28 PDT 2018


Author: grosser
Date: Mon Jun 11 07:59:28 2018
New Revision: 334412

URL: http://llvm.org/viewvc/llvm-project?rev=334412&view=rev
Log:
[ScopBuilder] Slightly improve code structure [NFCI]

First build the surrounding loops and then build up the polyhedral
structures. Before r326664 we had to mix these updates, clean this
up to improve readability (slightly).

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

Modified: polly/trunk/lib/Analysis/ScopBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopBuilder.cpp?rev=334412&r1=334411&r2=334412&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp (original)
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp Mon Jun 11 07:59:28 2018
@@ -1537,8 +1537,9 @@ void ScopBuilder::buildScop(Region &R, A
 
   // The ScopStmts now have enough information to initialize themselves.
   for (ScopStmt &Stmt : *scop) {
-    buildDomain(Stmt);
     collectSurroundingLoops(Stmt);
+
+    buildDomain(Stmt);
     buildAccessRelations(Stmt);
 
     if (DetectReductions)




More information about the llvm-commits mailing list