when checking for array computations with SLI, also check at the ADS!

This commit is contained in:
ceriel 1988-06-21 16:49:52 +00:00
parent d25a84511c
commit f892470f88

View file

@ -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;