mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-10 03:13:34 +00:00
[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:
parent
cb512a3072
commit
80677bce11
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user