From: ceriel Date: Fri, 17 Mar 1995 12:32:47 +0000 (+0000) Subject: Fix: never replace LAR/SAR by AAR LOI/STI if descriptor is not in ROM X-Git-Tag: release-5-5~134 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=911b0a43d8f605c81df0b1c0591299bac06bce5a;p=ack.git Fix: never replace LAR/SAR by AAR LOI/STI if descriptor is not in ROM --- diff --git a/util/ego/cs/cs_profit.c b/util/ego/cs/cs_profit.c index a7d0a9698..67eb713ed 100644 --- a/util/ego/cs/cs_profit.c +++ b/util/ego/cs/cs_profit.c @@ -184,9 +184,10 @@ STATIC bool okay_lines(avp, ocp) * as an AAR LOI/STI. This depends on the size of the array-elements. */ if (INSTR(ocp->oc_llast) == op_lar || INSTR(ocp->oc_llast) == op_sar) { + sz = array_elemsize(avp->av_othird); + if (sz == UNKNOWN_SIZE) return FALSE; if (avp->av_instr == (byte) op_aar && time_space_ratio < 50) { - return (sz = array_elemsize(avp->av_othird)) <= AR_limit && - sz != UNKNOWN_SIZE; + return sz <= AR_limit; } } return TRUE;