diff options
author | Roman Gareev <gareevroman@gmail.com> | 2014-07-24 14:08:29 +0000 |
---|---|---|
committer | Roman Gareev <romangareev@gcc.gnu.org> | 2014-07-24 14:08:29 +0000 |
commit | a663102770082432f660f5e3e572221f5a48655d (patch) | |
tree | 48a5d78f5dc33dd2c062d14b1d20c34fc61dc00a /gcc/graphite-isl-ast-to-gimple.c | |
parent | dacd445e14adb14de376a623d8686f93d3697729 (diff) | |
download | gcc-a663102770082432f660f5e3e572221f5a48655d.zip gcc-a663102770082432f660f5e3e572221f5a48655d.tar.gz gcc-a663102770082432f660f5e3e572221f5a48655d.tar.bz2 |
[gcc/]
* graphite-isl-ast-to-gimple.c:
(graphite_create_new_loop): Add calling of isl_id_free to properly
decrement reference counts.
[gcc/testsuite]
* gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
From-SVN: r212994
Diffstat (limited to 'gcc/graphite-isl-ast-to-gimple.c')
-rw-r--r-- | gcc/graphite-isl-ast-to-gimple.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c index b42d331..77b5ed4 100644 --- a/gcc/graphite-isl-ast-to-gimple.c +++ b/gcc/graphite-isl-ast-to-gimple.c @@ -389,6 +389,10 @@ graphite_create_new_loop (edge entry_edge, __isl_keep isl_ast_node *node_for, isl_ast_expr *for_iterator = isl_ast_node_for_get_iterator (node_for); isl_id *id = isl_ast_expr_get_id (for_iterator); + std::map<isl_id *, tree>::iterator res; + res = ip.find (id); + if (ip.count (id)) + isl_id_free (res->first); ip[id] = iv; isl_ast_expr_free (for_iterator); return loop; |