a minor fix
authorceriel <none@none>
Wed, 22 Jun 1988 10:56:04 +0000 (10:56 +0000)
committerceriel <none@none>
Wed, 22 Jun 1988 10:56:04 +0000 (10:56 +0000)
util/ego/il/il2_aux.c

index 8245521..25a7a45 100644 (file)
@@ -254,6 +254,8 @@ assign_ratio(c)
        /* Extra points for constants as parameters */
        if (ratio <= 0) ratio = 1;
        ll = c->cl_looplevel+1; 
+       /* Commented out; I don't see the point; Even if it is not called
+          from a loop, inline expansion is better
        if (ll == 1 && !IS_CALLED_IN_LOOP(c->cl_caller)) ll = 0;
        /* If the call is not in a loop and the called proc. is never called
         * in a loop, ll is set to 0.
@@ -533,6 +535,7 @@ select_calls(proclist,ccf,space)
                if (!is_dispensable(best->cl_proc,ccf)) {
                        space -= (best->cl_proc->P_SIZE - space_saved(best));
                }
+               else space += space_saved(best);
                selected(best);
                CHANGED(chp);
        }