Message ID | 20221003110815.1075975-1-aldyh@redhat.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp893547wrs; Mon, 3 Oct 2022 04:09:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7g4t8XeKzRZDcSp9mWX3oaoK7PLPhZvdj98GSNCMbsalINEuVm+6CLndbhMtqtlu2iOFo4 X-Received: by 2002:a50:fc85:0:b0:458:e7c6:1cfa with SMTP id f5-20020a50fc85000000b00458e7c61cfamr5398818edq.256.1664795355147; Mon, 03 Oct 2022 04:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664795355; cv=none; d=google.com; s=arc-20160816; b=MyfazNP1jd2A+3J4+wX4cwfzKLKTaXsZlQmR9UZZ7uITXxyPyU7IH7/pxIwgFJNKhR Drw4JEk9VRGKp3zZlwoYIL7ag7wy+mmHysptFUBnIkjtq4UgiYT7Leq7/1qc8IAHOinm 23D5T3ZGSS/GoRkabS7SnohfX5A1PTGXUzGoohN2hA3EjRK/R0v8B0szNKt44ITEHnwi R3n+9rl1Je5fSH+gMiPsDXdXUwW2kkrvWX71+XHlVWWHsfkVBf0XNYh5jA3rqaSZOj6j kAw58j+tnFd+JI1m0G2C2fLkBuNuxlJE59Tobqy0GTMTVhgGwPzJrlBbMZkUEq7BW/M5 RyRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=GLzYQ9zgH3UG4qbMPa5Riclo+SUBj8OHr9pC5Ldt3EU=; b=I6NVyjL5tn7eLGqf6wHbe3n8tWc9w6DNA862DkL3rKGqo5w6yX9uhgUbgBCWhw6yZq iJoHIeaP1teILjzn7JWJ2Hpxnyly14/k+Gfmurqlkv3UviF+VCax02kYXvtbTm65LMUN 8cOO3Apkhn8mOazPaZunA147lk2e/U6DtqJUbn9vIqZMjTMQcSNs+fzdoN8x0eiz41TH 8RtYyHd0pVZqTI3VnCU9cnesTMsyMtr9IPcNDUCDBnYh+yalZVj0TAAVvl/8zSg46DXC dnVKZMm91IZP5heM2zf9SnMn1iKgE1sZREUSSPGPdmq0Jn7+NR6oPjq5wmqUFLfsDSUs FxyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=d+a79fIv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id q5-20020a056402248500b0043dc00e0740si8306934eda.373.2022.10.03.04.09.14 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 04:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=d+a79fIv; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C6ACD385C8B1 for <ouuuleilei@gmail.com>; Mon, 3 Oct 2022 11:09:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6ACD385C8B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664795343; bh=GLzYQ9zgH3UG4qbMPa5Riclo+SUBj8OHr9pC5Ldt3EU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=d+a79fIv6n5yXe8MSHE+SnbdabgBYoXpcsi1RRsLS1SSzxzKdzu5pxsLZPOgQNYTb opeOw6XAML6mXZDaqJZeoqV0w6XPxXBdTZ3NQXGGv5NywrvsXrG6F1E9ore2JXY9Ea m/wEY6/kfJO+4gbRg7uSwnIO9udHop95yZ1uSylw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 936073858D32 for <gcc-patches@gcc.gnu.org>; Mon, 3 Oct 2022 11:08:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 936073858D32 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-HYorvbgHPwW5Iis1NwTcVQ-1; Mon, 03 Oct 2022 07:08:20 -0400 X-MC-Unique: HYorvbgHPwW5Iis1NwTcVQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0C984185A794 for <gcc-patches@gcc.gnu.org>; Mon, 3 Oct 2022 11:08:20 +0000 (UTC) Received: from abulafia.quesejoda.com (unknown [10.39.194.103]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B704C1759E; Mon, 3 Oct 2022 11:08:19 +0000 (UTC) Received: from abulafia.quesejoda.com (localhost [127.0.0.1]) by abulafia.quesejoda.com (8.17.1/8.17.1) with ESMTPS id 293B8HMk1075995 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 3 Oct 2022 13:08:17 +0200 Received: (from aldyh@localhost) by abulafia.quesejoda.com (8.17.1/8.17.1/Submit) id 293B8HAl1075994; Mon, 3 Oct 2022 13:08:17 +0200 To: GCC patches <gcc-patches@gcc.gnu.org> Subject: [COMMITTED] Do not compare incompatible ranges in ipa-prop. Date: Mon, 3 Oct 2022 13:08:12 +0200 Message-Id: <20221003110815.1075975-1-aldyh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Aldy Hernandez via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Aldy Hernandez <aldyh@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745664454558732421?= X-GMAIL-MSGID: =?utf-8?q?1745664454558732421?= |
Series |
[COMMITTED] Do not compare incompatible ranges in ipa-prop.
|
|
Commit Message
Aldy Hernandez
Oct. 3, 2022, 11:08 a.m. UTC
Committed as obvious. gcc/ChangeLog: * ipa-prop.cc (struct ipa_vr_ggc_hash_traits): Do not compare incompatible ranges in ipa-prop. --- 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