build tree nodes vs expand as you go
Richard Henderson
rth@redhat.com
Fri Dec 22 10:16:00 GMT 2000
On Thu, Dec 21, 2000 at 07:21:59PM +1100, Fergus Henderson wrote:
> I'm trying to decide whether to build a gcc tree node for each
> statement in my source language (like e.g. the Java front-end does),
> or whether to just expand them directly, using expand_start_cond(),
> expand_else(), expand_end_cond() etc.
>
> What are the trade-offs here?
The long term vision is that a front end doesn't deal with rtl at all, but
instead hands off a tree describing the entire function to the middle end.
At which point we do tree-based optimizations, then convert to an oft
wished for mid-level rtl (more regular and less machine specific) and do
SSA based optimizations, then convert to the rtl used today.
So please do generate trees for the entire function.
r~
More information about the Gcc
mailing list