This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trunk<-vta] Re: [vta,vta4.3,trunk?] avoid accidental moving of death notes in combine
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Jun 2009 05:17:11 -0300
- Subject: Re: [trunk<-vta] Re: [vta,vta4.3,trunk?] avoid accidental moving of death notes in combine
- References: <orzlmgfnby.fsf@oliva.athome.lsd.ic.unicamp.br> <or3aakz8nw.fsf@free.oliva.athome.lsd.ic.unicamp.br> <m3fxej9arv.fsf@google.com>
On Jun 1, 2009, Ian Lance Taylor <iant@google.com> wrote:
> Please format as
> OK with that change.
Thanks, here's what I've just installed.
for gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* combine.c (move_deaths): Compare LUIDs within the same BB only.
Index: gcc/combine.c
===================================================================
--- gcc/combine.c.orig 2009-06-02 04:48:51.000000000 -0300
+++ gcc/combine.c 2009-06-02 05:04:04.000000000 -0300
@@ -12144,6 +12144,7 @@ move_deaths (rtx x, rtx maybe_kill_insn,
return;
if (where_dead
+ && BLOCK_FOR_INSN (where_dead) == BLOCK_FOR_INSN (to_insn)
&& DF_INSN_LUID (where_dead) >= from_luid
&& DF_INSN_LUID (where_dead) < DF_INSN_LUID (to_insn))
{
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist Red Hat Brazil Compiler Engineer