[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OPTIMIZE in pass 1 of QCMP (QCP1)
- To: (BUG LISPM) at MIT-AI
- Subject: Re: OPTIMIZE in pass 1 of QCMP (QCP1)
- From: GLS@MIT-AI
- Date: Wed ,22 Feb 79 13:06:32 EDT
CC: GLS at MIT-AI
The optimizer as it is currently structured seems to have
the general problem that at the point an optimizer is applied to
a form, the subforms of that form are not optimized. As a result,
a form like (EQUAL X (OR)) optimizes only to (EQUAL X 'NIL),
whereas if (EQUAL X 'NIL) were originally written, it would optimize
first to (EQ X 'NIL) and thence to (NOT X). The optimizer seems
to operate top-down, in effect, but this example indicates that
it were perhaps better arranged bottom-up.