This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] new code size estimation for inlining


> On Mon, Jun 30, 2003 at 10:56:31PM +0200, Jan Hubicka wrote:
> > +   walk_tree_without_duplicates (&DECL_SAVED_TREE (decl), c_estimate_num_insns_1, &num);
> 
> Wrap.  Why "without_duplicates"?  Seems to me if the same CALL_EXPR
> node shows up twice, ew get two calls, and so need to count it twice.

I was told that CALL_EXPRs are never shared.  C++ frontend does not
share it in one case and it causes tree inliner to go crazy, so i think
it is bug.  I sent a fix for that in other email.

I am not sure what is the best behaviour here.  I expected that things
that gets shared would likely get CSEed too, but I am not quite sure it
is the case.  I can simply remove the _without_duplcates and we see what
works better.
OK?

Honza
> 
> The rest looks ok.
> 
> 
> r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]