diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2004-06-29 23:19:20 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-06-29 16:19:20 -0700 |
commit | 909b7f16890963a8eff598a56a8b91e332502c07 (patch) | |
tree | d268724f9483c34206dd2e23612cf389eb44c1bf | |
parent | 97bb4af77a4b0cd8b706ab24ad5ae61e2f0f90f5 (diff) | |
download | gcc-909b7f16890963a8eff598a56a8b91e332502c07.tar.gz |
web.c (union_defs): use all defs of an instruction to create a union with a read/write use
* web.c (union_defs): use all defs of an instruction to create a
union with a read/write use
From-SVN: r83882
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/web.c | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8fe3608801..2851a5d929f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Roman Zippel <zippel@linux-m68k.org> + + * web.c (union_defs): use all defs of an instruction to create a + union with a read/write use + 2004-06-29 Richard Henderson <rth@redhat.com> PR middle-end/16216 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; + } } } |