From: Richard Kenner Date: Fri, 10 Oct 2003 19:02:51 +0000 (+0000) Subject: * combine.c (distribute_links): Properly test for REG being set. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=892c9f1f53581abe563e6e0183fbc05936d10e95;p=gcc.git * combine.c (distribute_links): Properly test for REG being set. From-SVN: r72310 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5908a422805..4f351d31a45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2003-10-10 Richard Kenner + * 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. diff --git a/gcc/combine.c b/gcc/combine.c index 7a0b5d3cad4..1ac2851d63c 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -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. */