diff options
| author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-16 12:11:03 +0000 |
|---|---|---|
| committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2016-02-16 12:11:03 +0000 |
| commit | 6a7c3e4bac78bc796b722f07dc336be8186fd535 (patch) | |
| tree | a0f650c5dc1774aa2c98de0404f1d002b1f1ccc9 | |
| parent | 13637678b162096b48cc8cb4d57c6bf2ed0ed841 (diff) | |
| download | bcm5719-llvm-6a7c3e4bac78bc796b722f07dc336be8186fd535.tar.gz bcm5719-llvm-6a7c3e4bac78bc796b722f07dc336be8186fd535.zip | |
Set AST Build for all statements [NFC]
llvm-svn: 260956
| -rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index 50435b67a9a..90f35d60fba 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -702,12 +702,15 @@ IslNodeBuilder::createNewAccesses(ScopStmt *Stmt, __isl_keep isl_ast_node *Node) { isl_id_to_ast_expr *NewAccesses = isl_id_to_ast_expr_alloc(Stmt->getParent()->getIslCtx(), 0); + + auto *Build = IslAstInfo::getBuild(Node); + assert(Build && "Could not obtain isl_ast_build from user node"); + Stmt->setAstBuild(Build); + for (auto *MA : *Stmt) { if (!MA->hasNewAccessRelation()) continue; - auto Build = IslAstInfo::getBuild(Node); - assert(Build && "Could not obtain isl_ast_build from user node"); auto Schedule = isl_ast_build_get_schedule(Build); auto PWAccRel = MA->applyScheduleToAccessRelation(Schedule); |

