- add missing static
- fixed documentation
[r25900]
struct obstack obst; /** obstack for temporary data */
};
struct obstack obst; /** obstack for temporary data */
};
-/** A node, input index pair. */
+/** A (node, input index) pair. */
struct pair_t {
pair_t *next; /**< Points to the next pair entry. */
ir_node *irn; /**< The IR-node. */
struct pair_t {
pair_t *next; /**< Points to the next pair entry. */
ir_node *irn; /**< The IR-node. */
* Creates a new empty partition and put in on the
* partitions list.
*
* Creates a new empty partition and put in on the
* partitions list.
*
- * @param meet_block the control flow meet block of thi partition
+ * @param meet_block the control flow meet block of this partition
* @param env the environment
*/
static partition_t *create_partition(ir_node *meet_block, environment_t *env) {
* @param env the environment
*/
static partition_t *create_partition(ir_node *meet_block, environment_t *env) {
* @param part the partition
* @param env the environment
*/
* @param part the partition
* @param env the environment
*/
-void propagate_blocks(partition_t *part, environment_t *env) {
+static void propagate_blocks(partition_t *part, environment_t *env) {
block_t *ready_blocks = NULL;
unsigned n_ready = 0;
block_t *bl, *next;
block_t *ready_blocks = NULL;
unsigned n_ready = 0;
block_t *bl, *next;
*
* @param env the environment
*/
*
* @param env the environment
*/
-void propagate(environment_t *env) {
+static void propagate(environment_t *env) {
partition_t *part, *next;
list_for_each_entry_safe(partition_t, part, next, &env->partitions, part_list) {
partition_t *part, *next;
list_for_each_entry_safe(partition_t, part, next, &env->partitions, part_list) {
ir_graph *rem;
environment_t env;
partition_t *part;
ir_graph *rem;
environment_t env;
partition_t *part;
int res, n;
rem = current_ir_graph;
int res, n;
rem = current_ir_graph;
// dump_ir_block_graph(irg, "-after");
}
// dump_ir_block_graph(irg, "-after");
}
+ for (bl = env.all_blocks; bl != NULL; bl = bl->all_next) {
+ DEL_ARR_F(bl->roots);
+ }
+
DEL_ARR_F(env.live_outs);
del_set(env.opcode2id_map);
obstack_free(&env.obst, NULL);
DEL_ARR_F(env.live_outs);
del_set(env.opcode2id_map);
obstack_free(&env.obst, NULL);