This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa]: Code movement is a pain in the ass.
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sun, 10 Aug 2003 13:11:05 -0400
- Subject: Re: [tree-ssa]: Code movement is a pain in the ass.
- Organization: Red Hat Canada
- References: <Pine.LNX.4.56.0308100106230.21446@dberlin.org>
On Sun, 2003-08-10 at 01:42, Daniel Berlin wrote:
> Anybody mind if i make bsi_remove take an argument to convince it i'm
> only removing the statement temporarily (ie moving it), and then add
> an argument to remove_stmt to tell it *not* to reset definitions and
> annotations?
>
> That way, i can just remove it from one place, and move it to another?
>
Or, how about we create a bsi_move (stmt, from, to)? 'from' and 'to'
may be iterators or some structure that includes enough info to remap
the statement from the old location into the new one.
Diego.