diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-29 23:19:20 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-29 23:19:20 +0000 |
commit | 9f5cefec004d3285144ae5944f1971c26763e079 (patch) | |
tree | d268724f9483c34206dd2e23612cf389eb44c1bf /gcc/web.c | |
parent | f43dda35843199b41b71340af7f2835d5e65aeae (diff) | |
download | gcc-9f5cefec004d3285144ae5944f1971c26763e079.tar.gz |
* web.c (union_defs): use all defs of an instruction to create a
union with a read/write use
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83882 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/web.c')
-rw-r--r-- | gcc/web.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/web.c b/gcc/web.c index 11f2caa6cd2..91dbb90e3c3 100644 --- a/gcc/web.c +++ b/gcc/web.c @@ -160,11 +160,13 @@ union_defs (struct df *df, struct ref *use, struct web_entry *def_entry, { struct df_link *link = DF_INSN_DEFS (df, DF_REF_INSN (use)); - while (DF_REF_REAL_REG (link->ref) != DF_REF_REAL_REG (use)) - link = link->next; - - unionfind_union (use_entry + DF_REF_ID (use), - def_entry + DF_REF_ID (link->ref)); + while (link) + { + if (DF_REF_REAL_REG (link->ref) == DF_REF_REAL_REG (use)) + unionfind_union (use_entry + DF_REF_ID (use), + def_entry + DF_REF_ID (link->ref)); + link = link->next; + } } } |