[polly] r260956 - Set AST Build for all statements [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 16 04:11:04 PST 2016
Author: jdoerfert
Date: Tue Feb 16 06:11:03 2016
New Revision: 260956
URL: http://llvm.org/viewvc/llvm-project?rev=260956&view=rev
Log:
Set AST Build for all statements [NFC]
Modified:
polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
Modified: polly/trunk/lib/CodeGen/IslNodeBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslNodeBuilder.cpp?rev=260956&r1=260955&r2=260956&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslNodeBuilder.cpp (original)
+++ polly/trunk/lib/CodeGen/IslNodeBuilder.cpp Tue Feb 16 06:11:03 2016
@@ -702,12 +702,15 @@ IslNodeBuilder::createNewAccesses(ScopSt
__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);
More information about the llvm-commits
mailing list