aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2003-10-10 19:02:51 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2003-10-10 15:02:51 -0400
commit892c9f1f53581abe563e6e0183fbc05936d10e95 (patch)
treec7b8226a60a47aab21edde66d03fe78266985c33 /gcc/combine.c
parent0dd62597267bbe5c10c19f871fc6ba47abbbfbe7 (diff)
downloadgcc-892c9f1f53581abe563e6e0183fbc05936d10e95.zip
gcc-892c9f1f53581abe563e6e0183fbc05936d10e95.tar.gz
gcc-892c9f1f53581abe563e6e0183fbc05936d10e95.tar.bz2
* combine.c (distribute_links): Properly test for REG being set.
From-SVN: r72310
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 7a0b5d3..1ac2851 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. */