public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3024] Do not compare incompatible ranges in ipa-prop.
@ 2022-10-03 11:08 Aldy Hernandez
0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-10-03 11:08 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b90d1b50867d7c0468e1851f24bc33fe338bcc20
commit r13-3024-gb90d1b50867d7c0468e1851f24bc33fe338bcc20
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Sat Oct 1 22:20:49 2022 +0200
Do not compare incompatible ranges in ipa-prop.
gcc/ChangeLog:
* ipa-prop.cc (struct ipa_vr_ggc_hash_traits): Do not compare
incompatible ranges in ipa-prop.
Diff:
---
gcc/ipa-prop.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc
index ca5b9f31570..724c9456308 100644
--- a/gcc/ipa-prop.cc
+++ b/gcc/ipa-prop.cc
@@ -126,8 +126,8 @@ struct ipa_vr_ggc_hash_traits : public ggc_cache_remove <value_range *>
static bool
equal (const value_range *a, const value_range *b)
{
- return (*a == *b
- && types_compatible_p (a->type (), b->type ()));
+ return (types_compatible_p (a->type (), b->type ())
+ && *a == *b);
}
static const bool empty_zero_p = true;
static void
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-03 11:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 11:08 [gcc r13-3024] Do not compare incompatible ranges in ipa-prop Aldy Hernandez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).