Commit df33b59f authored by Michael Beck's avatar Michael Beck
Browse files

C99 feature removed, fixed typo.

[r27979]
parent 4fa8da0e
...@@ -5772,18 +5772,18 @@ static ir_node *transform_node_Mux(ir_node *n) ...@@ -5772,18 +5772,18 @@ static ir_node *transform_node_Mux(ir_node *n)
} }
/* first normalization step: try to move a constant to the false side, /* first normalization step: try to move a constant to the false side,
* 0 prefered on false side too */ * 0 preferred on false side too */
if (is_Proj(sel)) { if (is_Proj(sel)) {
ir_node *cmp = get_Proj_pred(sel); ir_node *cmp = get_Proj_pred(sel);
if (is_Cmp(cmp) && is_Const(t) && if (is_Cmp(cmp) && is_Const(t) &&
(!is_Const(f) || (is_Const_null(t) && !is_Const_null(f)))) { (!is_Const(f) || (is_Const_null(t) && !is_Const_null(f)))) {
pn_Cmp pnc = get_Proj_proj(sel);
ir_node *tmp = t; ir_node *tmp = t;
t = f; t = f;
f = tmp; f = tmp;
/* Mux(x, a, b) => Mux(not(x), b, a) */ /* Mux(x, a, b) => Mux(not(x), b, a) */
pn_Cmp pnc = get_Proj_proj(sel);
sel = new_r_Proj(cmp, mode_b, sel = new_r_Proj(cmp, mode_b,
get_negated_pnc(pnc, get_irn_mode(get_Cmp_left(cmp)))); get_negated_pnc(pnc, get_irn_mode(get_Cmp_left(cmp))));
n = new_rd_Mux(get_irn_dbg_info(n), get_nodes_block(n), sel, f, t, mode); n = new_rd_Mux(get_irn_dbg_info(n), get_nodes_block(n), sel, f, t, mode);
......
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