From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0CA0A3857710; Thu, 13 Apr 2023 13:00:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CA0A3857710 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681390848; bh=WbgcBi01Cm061jqVyWZDmZ0a8EWK3fj/w03Zw1G5yTk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IZVKvhRNHZQapk4rpLlLIzGp7i8Z2HKHoSTza4XVU76HlgQBCOzEVMJxFf1mgv6co 4QXmiqr+DplmHmXGya3qBhISQDSg4mnzelx5GzuQxRtiG+aXw7pfcsnzJbGwMHLnAE D1cz+X2uvMHYOkOVpB1ppdWG9PMMdyL/TAbpYlFQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109491] [13 Regression] Segfault in tree-ssa-sccvn.cc:expressions_equal_p() Date: Thu, 13 Apr 2023 13:00:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109491 --- Comment #10 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:a37783de23c067d6a26374ff29c014e49604035c commit r13-7166-ga37783de23c067d6a26374ff29c014e49604035c Author: Richard Biener Date: Thu Apr 13 14:09:30 2023 +0200 tree-optimization/109491 - ICE in expressions_equal_p At some point I elided the NULL pointer check in expressions_equal_p because it shouldn't be necessary not realizing that for example TARGET_MEM_REF has optional operands we cannot substitute with something non-NULL with the same semantics. The following does the simple thing and restore the check removed in r11-4982. PR tree-optimization/109491 * tree-ssa-sccvn.cc (expressions_equal_p): Restore the NULL operands test.=