Commit 9f43ba09 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irgopt: Remove the constant-true return value from optimize_graph_df().

parent dcbb0cba
......@@ -64,7 +64,7 @@ FIRM_API void local_opts_const_code(void);
/** Same functionality as local_opts above, but without framework wrapper
* @deprecated
*/
FIRM_API int optimize_graph_df(ir_graph *irg);
FIRM_API void optimize_graph_df(ir_graph *irg);
/**
* Eliminates (obviously) unreachable code
......
......@@ -163,7 +163,7 @@ static void opt_walker(ir_node *n, void *env)
}
}
int optimize_graph_df(ir_graph *irg)
void optimize_graph_df(ir_graph *irg)
{
pdeq *waitq = new_pdeq();
ir_graph *rem = current_ir_graph;
......@@ -228,11 +228,6 @@ int optimize_graph_df(ir_graph *irg)
remove_End_Bads_and_doublets(end);
current_ir_graph = rem;
/* Note we do not have a reliable way to detect changes, since some
* localopt rules change the inputs of a node and do not return a new
* node, so we conservatively say true here */
return true;
}
void local_opts_const_code(void)
......
Supports Markdown
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