summaryrefslogtreecommitdiff
path: root/gcc/graphite-poly.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-16 17:33:07 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-16 17:33:07 +0000
commit18d73d6f3868fe4dad7b5168fe8522eb97d11fdb (patch)
tree9c0e606157f927a48dd88bedb966bb39208877e1 /gcc/graphite-poly.c
parenta6edabb847a276b9861f38f46cd8975e7697cdcf (diff)
downloadgcc-18d73d6f3868fe4dad7b5168fe8522eb97d11fdb.tar.gz
Remove individial dependence pointers and add a scop::dependence to contain all the dependence.
Removed the member variables which are only used in scop_get_dependence. Instead only maintaining the overall dependence. Passes regtest and bootstrap. gcc/ChangeLog: 2015-12-15 hiraditya <hiraditya@msn.com> * graphite-dependences.c (scop_get_dependences): Use local pointers. * graphite-isl-ast-to-gimple.c(translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence. * graphite-optimize-isl.c (optimize_isl): Same. * graphite-poly.c (new_scop): Remove initialization of removed members. (free_scop): Same. * graphite.h (struct scop): Remove individial dependence pointers and add a scop::dependence to contain all the dependence. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231708 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-poly.c')
-rw-r--r--gcc/graphite-poly.c43
1 files changed, 11 insertions, 32 deletions
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c
index 44f02416586..00d674cd7c9 100644
--- a/gcc/graphite-poly.c
+++ b/gcc/graphite-poly.c
@@ -295,26 +295,15 @@ scop_p
new_scop (edge entry, edge exit)
{
sese_info_p region = new_sese_info (entry, exit);
- scop_p scop = XNEW (struct scop);
-
- scop->param_context = NULL;
- scop->must_raw = NULL;
- scop->may_raw = NULL;
- scop->must_raw_no_source = NULL;
- scop->may_raw_no_source = NULL;
- scop->must_war = NULL;
- scop->may_war = NULL;
- scop->must_war_no_source = NULL;
- scop->may_war_no_source = NULL;
- scop->must_waw = NULL;
- scop->may_waw = NULL;
- scop->must_waw_no_source = NULL;
- scop->may_waw_no_source = NULL;
- scop_set_region (scop, region);
- scop->pbbs.create (3);
- scop->drs.create (3);
-
- return scop;
+ scop_p s;
+ s = XNEW (struct scop);
+
+ s->param_context = NULL;
+ scop_set_region (s, region);
+ s->pbbs.create (3);
+ s->drs.create (3);
+ s->dependence = NULL;
+ return s;
}
/* Deletes SCOP. */
@@ -335,18 +324,8 @@ free_scop (scop_p scop)
scop->drs.release ();
isl_set_free (scop->param_context);
- isl_union_map_free (scop->must_raw);
- isl_union_map_free (scop->may_raw);
- isl_union_map_free (scop->must_raw_no_source);
- isl_union_map_free (scop->may_raw_no_source);
- isl_union_map_free (scop->must_war);
- isl_union_map_free (scop->may_war);
- isl_union_map_free (scop->must_war_no_source);
- isl_union_map_free (scop->may_war_no_source);
- isl_union_map_free (scop->must_waw);
- isl_union_map_free (scop->may_waw);
- isl_union_map_free (scop->must_waw_no_source);
- isl_union_map_free (scop->may_waw_no_source);
+ isl_union_map_free (scop->dependence);
+ scop->dependence = NULL;
XDELETE (scop);
}