From 9239436cae14e67a6180df85093d6d18d0632e5e Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Tue, 10 Oct 2017 08:57:21 +0000 Subject: [PATCH] tree-loop-distribution.c (struct partition): Remove unused field loops of the structure. * tree-loop-distribution.c (struct partition): Remove unused field loops of the structure. (partition_alloc, partition_free): Ditto. (build_rdg_partition_for_vertex): Ditto. From-SVN: r253578 --- gcc/ChangeLog | 7 +++++++ gcc/tree-loop-distribution.c | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30bbeb5ad82..9b6beb84106 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-10-10 Bin Cheng + + * tree-loop-distribution.c (struct partition): Remove unused field + loops of the structure. + (partition_alloc, partition_free): Ditto. + (build_rdg_partition_for_vertex): Ditto. + 2017-10-09 Jeff Law * targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 26b8b9a3751..3db3d6ec21e 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -593,8 +593,6 @@ struct partition { /* Statements of the partition. */ bitmap stmts; - /* Loops of the partition. */ - bitmap loops; /* True if the partition defines variable which is used outside of loop. */ bool reduction_p; /* For builtin partition, true if it executes one iteration more than @@ -619,7 +617,6 @@ partition_alloc (void) { partition *partition = XCNEW (struct partition); partition->stmts = BITMAP_ALLOC (NULL); - partition->loops = BITMAP_ALLOC (NULL); partition->reduction_p = false; partition->kind = PKIND_NORMAL; partition->datarefs = BITMAP_ALLOC (NULL); @@ -632,7 +629,6 @@ static void partition_free (partition *partition) { BITMAP_FREE (partition->stmts); - BITMAP_FREE (partition->loops); BITMAP_FREE (partition->datarefs); free (partition); } @@ -1279,8 +1275,6 @@ build_rdg_partition_for_vertex (struct graph *rdg, int v) FOR_EACH_VEC_ELT (nodes, i, x) { bitmap_set_bit (partition->stmts, x); - bitmap_set_bit (partition->loops, - loop_containing_stmt (RDG_STMT (rdg, x))->num); for (j = 0; RDG_DATAREFS (rdg, x).iterate (j, &dr); ++j) { -- 2.30.2