From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2136) id C9F0E3857BA8; Mon, 3 Oct 2022 11:08:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9F0E3857BA8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664795313; bh=h+/s6+WL2K86dRiF1JxTiMRlI5HDHb6/W6gExE9Laas=; h=From:To:Subject:Date:From; b=S2HTpkPWsh21mmfxXh1syneobgHO2a+jo6sTvLwPen7KZWrKbcpaK48gM4H1W0OPe 0X2DLW9NAYV8lJGgWwwTS3gJikug4Sol18JUO7Xq8yAjbz2RGbksY7EdOZYsJV0pRB /2CAhNz45aLUg+P4bYURganaUwo+BN1tR++TSECE= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Aldy Hernandez To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3024] Do not compare incompatible ranges in ipa-prop. X-Act-Checkin: gcc X-Git-Author: Aldy Hernandez X-Git-Refname: refs/heads/master X-Git-Oldrev: 31d7c8bc2630e1b5a35ccce97ac862c4920ba582 X-Git-Newrev: b90d1b50867d7c0468e1851f24bc33fe338bcc20 Message-Id: <20221003110833.C9F0E3857BA8@sourceware.org> Date: Mon, 3 Oct 2022 11:08:33 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b90d1b50867d7c0468e1851f24bc33fe338bcc20 commit r13-3024-gb90d1b50867d7c0468e1851f24bc33fe338bcc20 Author: Aldy Hernandez 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 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