loads are a little bit more expensive than reloads because they have a lower probabil...
authorAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Sat, 15 Jul 2006 11:29:08 +0000 (11:29 +0000)
committerAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Sat, 15 Jul 2006 11:29:08 +0000 (11:29 +0000)
ir/be/ia32/bearch_ia32.c

index 2d3e0be..9eb5e57 100644 (file)
@@ -496,9 +496,12 @@ static int ia32_get_op_estimated_cost(const void *self, const ir_node *irn)
        case iro_ia32_xLoad:
        case iro_ia32_l_Load:
        case iro_ia32_Load:
+               cost = 25;
+               break;
+
        case iro_ia32_Push:
        case iro_ia32_Pop:
-               cost = 10;
+               cost = 5;
                break;
 
        case iro_ia32_xStore: