diff options
author | Tobias Grosser <tobias@grosser.es> | 2018-06-11 14:59:28 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2018-06-11 14:59:28 +0000 |
commit | 80677bce11adb10327b664753363196b680b0df6 (patch) | |
tree | fb9b5861ad44e9a96d80204c4b36251171bba6bb | |
parent | cb512a30727a2506409b2fe44dafa5591bcf045f (diff) | |
download | bcm5719-llvm-80677bce11adb10327b664753363196b680b0df6.tar.gz bcm5719-llvm-80677bce11adb10327b664753363196b680b0df6.zip |
[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
-rw-r--r-- | polly/lib/Analysis/ScopBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp index be19bd00744..48d8b20cd85 100644 --- a/polly/lib/Analysis/ScopBuilder.cpp +++ b/polly/lib/Analysis/ScopBuilder.cpp @@ -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) |