* combine.c (distribute_links): Properly test for REG being set.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 10 Oct 2003 19:02:51 +0000 (19:02 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 10 Oct 2003 19:02:51 +0000 (15:02 -0400)
From-SVN: r72310

gcc/ChangeLog
gcc/combine.c

index 5908a4228053c2cb270f2e512704132bb398191f..4f351d31a45abba851e1eed504e304d488d000df 100644 (file)
@@ -1,5 +1,7 @@
 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * combine.c (distribute_links): Properly test for REG being set.
+
        * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
        gen_lowpart and company except for REG.
 
index 7a0b5d3cad4d3509594acd70ec7c6fb173ee565d..1ac2851d63cd0f2baf313d6fb5706046d02af36c 100644 (file)
@@ -12999,6 +12999,8 @@ distribute_links (rtx links)
            place = insn;
            break;
          }
+       else if (INSN_P (insn) && reg_set_p (reg, insn))
+         break;
 
       /* If we found a place to put the link, place it there unless there
         is already a link to the same insn as LINK at that point.  */