Commit 14b5cf62 authored by Michael Beck's avatar Michael Beck
Browse files

- do not create useless Confirm(x == true) and Confirm(x == false) Confirms,

  use the constants directly

[r25324]
parent af011537
......@@ -209,10 +209,13 @@ static void handle_modeb(ir_node *block, ir_node *selector, pn_Cond pnc, env_t *
if (c_b == NULL) {
ir_node *c_true = new_Const(tarval_b_true);
ir_node *c_false = new_Const(tarval_b_false);
c_b = new_r_Confirm(current_ir_graph, cond_block, selector,
pnc == pn_Cond_true ? c_true : c_false, pn_Cmp_Eq);
c_o = new_r_Confirm(current_ir_graph, cond_block, selector,
pnc == pn_Cond_false ? c_true : c_false, pn_Cmp_Eq);
if (pnc == pn_Cond_true) {
c_b = c_true;
c_o = c_false;
} else {
c_b = c_false;
c_o = c_true;
}
}
for (i = n - 1; i >= 0; --i) {
ir_node *pred_blk = get_Block_cfgpred_block(user_blk, i);
......
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