From 5508faeca998a38f50740d4790bf9c883877d589 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Tue, 11 Apr 2006 13:48:25 +0000 Subject: [PATCH] fixed am optimizer --- ir/be/ia32/ia32_optimize.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 */ -- 2.20.1