diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-07-28 06:49:44 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-07-28 06:49:44 +0000 |
commit | 25271b91b237cde8f897b230aa366d38dd701f6c (patch) | |
tree | bc29f8a47639313d56848b12cd80559e24c019d1 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
parent | fa4969539ad13bfd2c67caa3b206754cef373ba6 (diff) | |
download | bcm5719-llvm-25271b91b237cde8f897b230aa366d38dd701f6c.tar.gz bcm5719-llvm-25271b91b237cde8f897b230aa366d38dd701f6c.zip |
[GPGPU] Do not require the Scop::Context to have information about all parameters
llvm-svn: 309368
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index dfbae93c0cf..7f0a03b375c 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2424,10 +2424,9 @@ public: S->getIslCtx(), S->getNumParams() + std::distance(S->array_begin(), S->array_end())); auto *Zero = isl_ast_expr_from_val(isl_val_zero(S->getIslCtx())); - auto *Space = S->getParamSpace(); - for (int I = 0, E = S->getNumParams(); I < E; ++I) { - isl_id *Id = isl_space_get_dim_id(Space, isl_dim_param, I); + for (const SCEV *P : S->parameters()) { + isl_id *Id = S->getIdForParam(P); Names = isl_id_to_ast_expr_set(Names, Id, isl_ast_expr_copy(Zero)); } @@ -2436,7 +2435,6 @@ public: Names = isl_id_to_ast_expr_set(Names, Id, isl_ast_expr_copy(Zero)); } - isl_space_free(Space); isl_ast_expr_free(Zero); return Names; |