summaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-10-01 22:20:49 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-10-03 13:06:25 +0200
commitb90d1b50867d7c0468e1851f24bc33fe338bcc20 (patch)
tree3c21438c33b8a8709c2aa58c11f09a0020a3549e /gcc/ipa-prop.cc
parent31d7c8bc2630e1b5a35ccce97ac862c4920ba582 (diff)
downloadgcc-b90d1b50867d7c0468e1851f24bc33fe338bcc20.tar.gz
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.
Diffstat (limited to 'gcc/ipa-prop.cc')
-rw-r--r--gcc/ipa-prop.cc4
1 files 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