From: Christian Würdig Date: Tue, 11 Apr 2006 13:48:25 +0000 (+0000) Subject: fixed am optimizer X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5508faeca998a38f50740d4790bf9c883877d589;p=libfirm fixed am optimizer --- diff --git a/ir/be/ia32/ia32_optimize.c b/ir/be/ia32/ia32_optimize.c index 680a1c74b..59e42005b 100644 --- a/ir/be/ia32/ia32_optimize.c +++ b/ir/be/ia32/ia32_optimize.c @@ -510,8 +510,6 @@ static void ia32_create_Pop(ir_node *irn, ia32_code_gen_t *cg) { sched_add_before(proj_res,pop); } -/** - /** * Tries to optimize two following IncSP. */ @@ -1417,7 +1415,7 @@ void ia32_optimize_am(ir_node *irn, void *env) { } /* normalize commutative ops */ - if (node_is_ia32_comm(irn)) { + if (check_am_src && node_is_ia32_comm(irn)) { /* Assure that left operand is always a Load if there is one */ /* because non-commutative ops can only use Source AM if the */ /* left operand is a Load, so we only need to check the left */