From dd690a1065577447c07910d3ec3a20944b746c16 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 22 Jun 1988 10:56:04 +0000 Subject: [PATCH] a minor fix --- util/ego/il/il2_aux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/ego/il/il2_aux.c b/util/ego/il/il2_aux.c index 824552125..25a7a4502 100644 --- a/util/ego/il/il2_aux.c +++ b/util/ego/il/il2_aux.c @@ -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); } -- 2.34.1