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-Tag: releases/gcc-3.4.0~3146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=892c9f1f53581abe563e6e0183fbc05936d10e95;p=thirdparty%2Fgcc.git * combine.c (distribute_links): Properly test for REG being set. From-SVN: r72310 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5908a4228053..4f351d31a45a 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 7a0b5d3cad4d..1ac2851d63cd 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. */