From: Matthias Braun Date: Thu, 7 Jan 2010 13:52:30 +0000 (+0000) Subject: Liebe bugs part1: Eor(1, Proj(Cmp)) was broken - simply remove the optimisation since... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=884339329314777cf0094cedcd11ebae52656ab2;p=libfirm Liebe bugs part1: Eor(1, Proj(Cmp)) was broken - simply remove the optimisation since Eor(1, X) gets transformed to Not anyway and Not(Cmp) gets optimized [r26913] --- diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 661498601..6542ecfc9 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -3538,15 +3538,6 @@ static ir_node *transform_node_Eor(ir_node *n) { n = new_rd_Const(get_irn_dbg_info(n), current_ir_graph, get_mode_null(mode)); DBG_OPT_ALGSIM0(oldn, n, FS_OPT_EOR_A_A); - } else if (mode == mode_b && - is_Proj(a) && - is_Const(b) && is_Const_one(b) && - is_Cmp(get_Proj_pred(a))) { - /* The Eor negates a Cmp. The Cmp has the negated result anyways! */ - n = new_r_Proj(get_nodes_block(n), get_Proj_pred(a), - mode_b, get_negated_pnc(get_Proj_proj(a), mode)); - - DBG_OPT_ALGSIM0(oldn, n, FS_OPT_EOR_TO_NOT_BOOL); } else if (is_Const(b)) { if (is_Not(a)) { /* ~x ^ const -> x ^ ~const */ ir_node *cnst = new_Const(tarval_not(get_Const_tarval(b)));