From: Christoph Mallon Date: Wed, 3 Oct 2007 14:47:36 +0000 (+0000) Subject: When generating a ia32_Mul or ia32_IMul1OP mark them as commutative, not non-commutative. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dae394b3df432c6602940adbbee96a96d4ebcd38;p=libfirm When generating a ia32_Mul or ia32_IMul1OP mark them as commutative, not non-commutative. [r16061] --- diff --git a/ir/be/ia32/ia32_transform.c b/ir/be/ia32/ia32_transform.c index d8e01312e..c5dd3ae34 100644 --- a/ir/be/ia32/ia32_transform.c +++ b/ir/be/ia32/ia32_transform.c @@ -3793,7 +3793,7 @@ static ir_node *gen_ia32_l_Mul(ir_node *node) { /* and then skip the result Proj, because all needed Projs are already there. */ ir_node *muls = new_rd_ia32_Mul(dbgi, irg, block, noreg, noreg, new_NoMem(), new_left, new_right); - clear_ia32_commutative(muls); + set_ia32_commutative(muls); SET_IA32_ORIG_NODE(muls, ia32_get_old_node_name(env_cg, node)); @@ -3819,7 +3819,7 @@ static ir_node *gen_ia32_l_IMul(ir_node *node) { /* and then skip the result Proj, because all needed Projs are already there. */ ir_node *muls = new_rd_ia32_IMul1OP(dbgi, irg, block, noreg, noreg, new_NoMem(), new_left, new_right); - clear_ia32_commutative(muls); + set_ia32_commutative(muls); SET_IA32_ORIG_NODE(muls, ia32_get_old_node_name(env_cg, node));