From: ceriel Date: Tue, 21 Jun 1988 16:49:52 +0000 (+0000) Subject: when checking for array computations with SLI, also check at the ADS! X-Git-Tag: release-5-5~3174 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f892470f886d16f9b8777b458f5e211ea4487646;p=ack.git when checking for array computations with SLI, also check at the ADS! --- diff --git a/util/ego/cs/cs_profit.c b/util/ego/cs/cs_profit.c index efd337802..d3afb1673 100644 --- a/util/ego/cs/cs_profit.c +++ b/util/ego/cs/cs_profit.c @@ -145,6 +145,10 @@ STATIC bool gains(avp) if (avp->av_instr == (byte) op_sli) return ! sli_no_eliminate(avp->av_found); + if (avp->av_instr == (byte) op_ads && + avp->av_found->l_prev && INSTR(avp->av_found->l_prev) == op_sli) + return ! sli_no_eliminate(avp->av_found->l_prev); + if (Cis_elem(avp->av_instr & BMASK, addr_modes)) return instrgroup(avp->av_found->l_prev) != SIMPLE_LOAD;