Commit f0db3da5 authored by Matthias Braun's avatar Matthias Braun
Browse files

always transform integer abs, even in GRAPH_STATE_KEEP_MUX

parent fa1795e5
......@@ -5503,9 +5503,6 @@ static ir_node *transform_node_Mux(ir_node *n)
ir_node *f = get_Mux_false(n);
ir_graph *irg = get_irn_irg(n);
if (is_irg_state(irg, IR_GRAPH_STATE_KEEP_MUX))
return n;
/* implement integer abs: abs(x) = x^(x >>s 31) - (x >>s 31) */
if (get_mode_arithmetic(mode) == irma_twos_complement) {
int abs = ir_mux_is_abs(sel, t, f);
......@@ -5527,6 +5524,9 @@ static ir_node *transform_node_Mux(ir_node *n)
}
}
if (is_irg_state(irg, IR_GRAPH_STATE_KEEP_MUX))
return n;
if (is_Mux(t)) {
ir_node* block = get_nodes_block(n);
ir_node* c0 = sel;
......
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