bool gpir_codegen_acc_same_op(gpir_op op1, gpir_op op2);
bool gpir_pre_rsched_lower_prog(gpir_compiler *comp);
-bool gpir_post_rsched_lower_prog(gpir_compiler *comp);
bool gpir_reduce_reg_pressure_schedule_prog(gpir_compiler *comp);
bool gpir_regalloc_prog(gpir_compiler *comp);
bool gpir_schedule_prog(gpir_compiler *comp);
static bool (*gpir_pre_rsched_lower_funcs[gpir_op_num])(gpir_block *, gpir_node *) = {
[gpir_op_not] = gpir_lower_not,
-};
-
-static bool (*gpir_post_rsched_lower_funcs[gpir_op_num])(gpir_block *, gpir_node *) = {
[gpir_op_neg] = gpir_lower_neg,
[gpir_op_rcp] = gpir_lower_complex,
[gpir_op_rsqrt] = gpir_lower_complex,
if (!gpir_lower_load(comp))
return false;
- gpir_debug("pre rsched lower prog\n");
- gpir_node_print_prog_seq(comp);
- return true;
-}
-
-bool gpir_post_rsched_lower_prog(gpir_compiler *comp)
-{
- list_for_each_entry(gpir_block, block, &comp->block_list, list) {
- list_for_each_entry_safe(gpir_node, node, &block->node_list, list) {
- if (gpir_post_rsched_lower_funcs[node->op] &&
- !gpir_post_rsched_lower_funcs[node->op](block, node))
- return false;
- }
- }
-
if (!gpir_lower_node_may_consume_two_slots(comp))
return false;
- gpir_debug("post rsched lower prog\n");
+ gpir_debug("pre rsched lower prog\n");
gpir_node_print_prog_seq(comp);
return true;
}
+