This is the mail archive of the gcc@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: Dead-code elimination can't remove string copy insns?


On Tue, May 13, 2003 at 12:02:05PM -0600, law@redhat.com wrote:
> In message <1052848240.27232.407.camel@frodo.toronto.redhat.com>, Diego Novillo
>  writes:
>  >Now, if we could also get rid of those pesky labels.  You mentioned
>  >something about that, but I forget what.
> Well, it's simply a matter of building a use count for the labels.  As
> we remove GOTO_EXPRs we decrement the count.

I don't know anything about the code in question, but is it certain that
the cost of maintaining, incrementing, and decrementing reference counts
is less than the cost of doing a sweep at the end to clean up unused cruft?
Reference counting is not necessarily cheap.


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