[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).

llvm-svn: 334412
This commit is contained in:
Tobias Grosser 2018-06-11 14:59:28 +00:00
parent cb512a3072
commit 80677bce11

View File

@ -1537,8 +1537,9 @@ void ScopBuilder::buildScop(Region &R, AssumptionCache &AC,
// The ScopStmts now have enough information to initialize themselves.
for (ScopStmt &Stmt : *scop) {
buildDomain(Stmt);
collectSurroundingLoops(Stmt);
buildDomain(Stmt);
buildAccessRelations(Stmt);
if (DetectReductions)