From: law@redhat.com
To: Diego Novillo <dnovillo@redhat.com>
Cc: Zack Weinberg <zack@codesourcery.com>,
Michael Matz <matz@suse.de>, "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: Dead-code elimination can't remove string copy insns?
Date: Tue, 13 May 2003 18:02:00 -0000 [thread overview]
Message-ID: <200305131802.h4DI25Ea012586@speedy.slc.redhat.com> (raw)
In-Reply-To: Your message of "13 May 2003 13:50:41 EDT." <1052848240.27232.407.camel@frodo.toronto.redhat.com>
In message <1052848240.27232.407.camel@frodo.toronto.redhat.com>, Diego Novillo
writes:
>On Tue, 2003-05-13 at 13:38, law@redhat.com wrote:
>
>> Does this look better? :-)
>>
>Much :)
>
>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. If the count goes to zero
and the label is not special (such as the target of a nonlocal goto), then
the label is unused and can be eliminated.
There's nothing particularly tricky here except that we want to build
those use counts efficiently. Meaning we don't want a separate walk
over the tree structures merely to build the use counts.
It's on the TODO, but it hasn't bubbled up to the top yet. Removal
of unused variables is a much bigger win as far as compilation time
is concerned.
Jeff
next prev parent reply other threads:[~2003-05-13 18:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-13 0:26 Zack Weinberg
2003-05-13 0:48 ` Dale Johannesen
2003-05-13 1:30 ` Zack Weinberg
2003-05-13 9:30 ` Michael Matz
2003-05-13 16:17 ` Zack Weinberg
2003-05-13 16:30 ` Diego Novillo
2003-05-13 16:40 ` Zack Weinberg
2003-05-13 17:07 ` Diego Novillo
2003-05-13 17:16 ` law
2003-05-13 17:24 ` Diego Novillo
2003-05-13 17:36 ` Zack Weinberg
2003-05-13 17:38 ` law
2003-05-13 17:50 ` Diego Novillo
2003-05-13 18:02 ` law [this message]
2003-05-13 18:35 ` Joe Buck
2003-05-13 19:35 ` [tree-ssa] Improve eliminate_useless_stmts_and_vars [Was Re: Dead-code elimination can't remove string copy insns? ] law
2003-05-13 22:14 ` Dead-code elimination can't remove string copy insns? Richard Henderson
2003-05-14 9:25 ` Michael Matz
2003-05-14 11:34 Naveen Sharma, Noida
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305131802.h4DI25Ea012586@speedy.slc.redhat.com \
--to=law@redhat.com \
--cc=dnovillo@redhat.com \
--cc=gcc@gcc.gnu.org \
--cc=matz@suse.de \
--cc=zack@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).