Commit 9239436c by Bin Cheng Committed by Bin Cheng

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
parent 599bffa2
2017-10-10 Bin Cheng <bin.cheng@arm.com>
* 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 <law@redhat.com> 2017-10-09 Jeff Law <law@redhat.com>
* targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix * targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix
...@@ -593,8 +593,6 @@ struct partition ...@@ -593,8 +593,6 @@ struct partition
{ {
/* Statements of the partition. */ /* Statements of the partition. */
bitmap stmts; bitmap stmts;
/* Loops of the partition. */
bitmap loops;
/* True if the partition defines variable which is used outside of loop. */ /* True if the partition defines variable which is used outside of loop. */
bool reduction_p; bool reduction_p;
/* For builtin partition, true if it executes one iteration more than /* For builtin partition, true if it executes one iteration more than
...@@ -619,7 +617,6 @@ partition_alloc (void) ...@@ -619,7 +617,6 @@ partition_alloc (void)
{ {
partition *partition = XCNEW (struct partition); partition *partition = XCNEW (struct partition);
partition->stmts = BITMAP_ALLOC (NULL); partition->stmts = BITMAP_ALLOC (NULL);
partition->loops = BITMAP_ALLOC (NULL);
partition->reduction_p = false; partition->reduction_p = false;
partition->kind = PKIND_NORMAL; partition->kind = PKIND_NORMAL;
partition->datarefs = BITMAP_ALLOC (NULL); partition->datarefs = BITMAP_ALLOC (NULL);
...@@ -632,7 +629,6 @@ static void ...@@ -632,7 +629,6 @@ static void
partition_free (partition *partition) partition_free (partition *partition)
{ {
BITMAP_FREE (partition->stmts); BITMAP_FREE (partition->stmts);
BITMAP_FREE (partition->loops);
BITMAP_FREE (partition->datarefs); BITMAP_FREE (partition->datarefs);
free (partition); free (partition);
} }
...@@ -1279,8 +1275,6 @@ build_rdg_partition_for_vertex (struct graph *rdg, int v) ...@@ -1279,8 +1275,6 @@ build_rdg_partition_for_vertex (struct graph *rdg, int v)
FOR_EACH_VEC_ELT (nodes, i, x) FOR_EACH_VEC_ELT (nodes, i, x)
{ {
bitmap_set_bit (partition->stmts, 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) for (j = 0; RDG_DATAREFS (rdg, x).iterate (j, &dr); ++j)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment