From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0ED0A3858D33; Tue, 7 Feb 2023 19:56:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0ED0A3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675799793; bh=qshng7+v1w+8Jq8aql5Oqca4KMbBCGVvJKpEdi7bpYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qHmfKBTldsXV3bDrssBAMdjIN8QMb9Oir6TixbbKL8zgGUGF8Gp64CHhLLizbF7ag 5j+Zg+84/yGM+jDirdfaLVQ95XnEUA2rsYp9Srq9Al9az/T5PI1vJI4GYdg2uZDlv9 XEYDESjfjtS1zZbP6H8aViJSqNMGl0TYD9Tq6WSQ= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108684] [12/13 Regression] ICE: verify_ssa failed Date: Tue, 07 Feb 2023 19:56:32 +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, inline-asm, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status keywords 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=3D108684 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Keywords| |wrong-code --- Comment #8 from Andrew Pinski --- I think simple_dce_from_worklist is incorrect of removing this inline-asm in the first place. Take: ``` static int t; int f (int *a) { int t1; asm (" " : "=3Dr" (t1) : : "memory"); t =3D t1; return *a; } ``` The inline-asm could have written to *a but now it has been removed. Let me look into fixing that. Note my patch (r12-4598-g113860301f46d14a255bd) exposed this even before VRP exposed this so I feel like I should fix this.=