a minor fix
This commit is contained in:
parent
627d2060cd
commit
dd690a1065
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue