mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-17 03:10:26 +08:00
tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the hash function.
* tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the hash function. From-SVN: r85760
This commit is contained in:
parent
236573882e
commit
b2ddaebb2d
@ -1,3 +1,8 @@
|
||||
2004-08-10 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
|
||||
hash function.
|
||||
|
||||
2004-08-10 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* config/mips/mips.md: New reciprocal square root patterns that
|
||||
|
@ -151,11 +151,20 @@ val_expr_pair_expr_eq (const void *p1, const void *p2)
|
||||
{
|
||||
const val_expr_pair_t ve1 = (val_expr_pair_t) p1;
|
||||
const val_expr_pair_t ve2 = (val_expr_pair_t) p2;
|
||||
size_t i;
|
||||
|
||||
if (expressions_equal_p (ve1->e, ve2->e))
|
||||
return true;
|
||||
if (! expressions_equal_p (ve1->e, ve2->e))
|
||||
return false;
|
||||
|
||||
if (NUM_VUSES (ve1->vuses) != NUM_VUSES (ve2->vuses))
|
||||
return false;
|
||||
|
||||
return false;
|
||||
for (i = 0; i < NUM_VUSES (ve1->vuses); i++)
|
||||
if (! expressions_equal_p (VUSE_OP (ve1->vuses, i),
|
||||
VUSE_OP (ve2->vuses, i)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user