summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-10 19:02:51 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-10 19:02:51 +0000
commit63173cd999b97a3f131fc5aa33336f436884ac14 (patch)
treec7b8226a60a47aab21edde66d03fe78266985c33 /gcc/combine.c
parentd5267542ed51d120c609baad765447739ee0799b (diff)
downloadgcc-63173cd999b97a3f131fc5aa33336f436884ac14.tar.gz
* combine.c (distribute_links): Properly test for REG being set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72310 138bc75d-0d04-0410-961f-82ee72b054a4
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 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. */