mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 01:30:55 +08:00
ira-costs.c (cost_classes_hasher::equal): Check equality of memcmp and 0 if no difference exists for HV1 and HV2.
2013-12-30 Felix Yang <felix.yang@huawei.com> * ira-costs.c (cost_classes_hasher::equal): Check equality of memcmp and 0 if no difference exists for HV1 and HV2. From-SVN: r206246
This commit is contained in:
parent
8e72847528
commit
c99ebd4dde
@ -1,3 +1,8 @@
|
||||
2013-12-30 Felix Yang <felix.yang@huawei.com>
|
||||
|
||||
* ira-costs.c (cost_classes_hasher::equal): Check equality of
|
||||
memcmp and 0 if no difference exists for HV1 and HV2.
|
||||
|
||||
2013-12-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/59501
|
||||
|
@ -154,8 +154,9 @@ cost_classes_hasher::hash (const value_type *hv)
|
||||
inline bool
|
||||
cost_classes_hasher::equal (const value_type *hv1, const compare_type *hv2)
|
||||
{
|
||||
return hv1->num == hv2->num && memcmp (hv1->classes, hv2->classes,
|
||||
sizeof (enum reg_class) * hv1->num);
|
||||
return (hv1->num == hv2->num
|
||||
&& memcmp (hv1->classes, hv2->classes,
|
||||
sizeof (enum reg_class) * hv1->num) == 0);
|
||||
}
|
||||
|
||||
/* Delete cost classes info V from the hash table. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user