|PRE and CISC firstname.lastname@example.org (shrey) (2008-01-17)|
|Re: PRE and CISC email@example.com (2008-01-18)|
|Date:||Fri, 18 Jan 2008 06:41:56 -0800 (PST)|
|Posted-Date:||19 Jan 2008 11:01:49 EST|
On Jan 18, 5:22 am, shrey <shreya...@gmail.com> wrote:
> Two questions if somebody can help me find answers:
> 1. Are there any PRE algorithms that are aware of such addressing
> modes ?
In practice you have to use huristics to decide when any optimization
is worthwhile. In the case of PRE you run the first half of the
algorithm to identify the partially redundant expressions then only do
the transformation if the expressions are more compilcated than the
addressing modes supported on your machine.
> 2. if not, how else can the subsequent passes recover so that they can
> use these addressing modes?
One example is rematerialization, which replaces register spill code
with code to recompute the value at its use.
Return to the
Search the comp.compilers archives again.