[tuples] meaning of DECL_SAVED_TREE while analyzing cgraph

Diego Novillo dnovillo@google.com
Tue Jul 31 23:45:00 GMT 2007


On 7/31/07 6:10 PM, Jan Hubicka wrote:

> There are also few other occurences in cgraph.c and ipa-inline.  Those
> are used to test whether function body is present.  When you have body
> elsewhere now, you can check something else (such as
> DECL_STRUCT_FUNCTION(cfun)->cfg)

Currently, in tuples, the presence of the GIMPLE function body is given
by gimple_body(fndecl).  After the CFG has been built, then
D_S_F(cfun)->cfg will be non-NULL.

We should abstract these two tests into a single predicate.  Also,
testing for the CFG of a function should be something like cfg (fndecl)
or something along those lines.



More information about the Gcc mailing list