+2017-08-17 Martin Liska <mliska@suse.cz>
+
+ PR bootstrap/81864
+ * tree-loop-distribution.c (ddrs_table): Change type to pointer
+ type.
+ (get_data_dependence): Use it as pointer type.
+ (distribute_loop): Likewise.
+
2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
#define DR_INDEX(dr) ((uintptr_t) (dr)->aux)
/* Hash table for data dependence relation in the loop to be distributed. */
-static hash_table<ddr_hasher> ddrs_table (389);
-
+static hash_table<ddr_hasher> *ddrs_table;
/* A Reduced Dependence Graph (RDG) vertex representing a statement. */
struct rdg_vertex
<= rdg_vertex_for_stmt (rdg, DR_STMT (b)));
ent.a = a;
ent.b = b;
- slot = ddrs_table.find_slot (&ent, INSERT);
+ slot = ddrs_table->find_slot (&ent, INSERT);
if (*slot == NULL)
{
ddr = initialize_data_dependence_relation (a, b, loop_nest);
distribute_loop (struct loop *loop, vec<gimple *> stmts,
control_dependences *cd, int *nb_calls, bool *destroy_p)
{
+ ddrs_table = new hash_table<ddr_hasher> (389);
struct graph *rdg;
partition *partition;
bool any_builtin;
if (!find_loop_nest (loop, &loop_nest))
{
loop_nest.release ();
+ delete ddrs_table;
return 0;
}
loop_nest.release ();
free_data_refs (datarefs_vec);
+ delete ddrs_table;
return 0;
}
free_rdg (rdg);
loop_nest.release ();
free_data_refs (datarefs_vec);
+ delete ddrs_table;
return 0;
}
ldist_done:
loop_nest.release ();
free_data_refs (datarefs_vec);
- for (hash_table<ddr_hasher>::iterator iter = ddrs_table.begin ();
- iter != ddrs_table.end (); ++iter)
+ for (hash_table<ddr_hasher>::iterator iter = ddrs_table->begin ();
+ iter != ddrs_table->end (); ++iter)
{
free_dependence_relation (*iter);
*iter = NULL;
}
- ddrs_table.empty ();
+ delete ddrs_table;
FOR_EACH_VEC_ELT (partitions, i, partition)
partition_free (partition);