fixed am optimizer
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 11 Apr 2006 13:48:25 +0000 (13:48 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 11 Apr 2006 13:48:25 +0000 (13:48 +0000)
ir/be/ia32/ia32_optimize.c

index 680a1c7..59e4200 100644 (file)
@@ -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 */