From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EDEE53857342; Tue, 8 Aug 2023 09:42:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EDEE53857342 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691487778; bh=dGPdVsQkj0+BJyWmNnnLUv4RUV1pEpyI26KgspUOUhg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PS2iS+9RNnGfj/wx9qDL9Hr7QayD/Cgig7bklejj0CeNE7ghktLqTnvvKxzbDjMip a1DPaw4L1etXwwZP1zVbrmxPKPhnt6JEalfwfGOVy0Iw+2D6NbnyJnvFvKACaAz2/B 0cSqoxOLksDCO9kSVObsdjCk5y832gX0k5qmd3QQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110924] [14 Regression] ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed Date: Tue, 08 Aug 2023 09:42:58 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 14.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=3D110924 --- Comment #11 from Richard Biener --- Variant (1) is just the following, but I'm unsure as to the possible effect= s of that ... (test coverage will be very low anyway) diff --git a/gcc/tree-ssa-operands.cc b/gcc/tree-ssa-operands.cc index 57e393ae164..c8ac98b4e06 100644 --- a/gcc/tree-ssa-operands.cc +++ b/gcc/tree-ssa-operands.cc @@ -696,7 +696,8 @@ operands_scanner::maybe_add_call_vops (gcall *stmt) /* A 'pure' or a 'const' function never call-clobbers anything. */ if (!(call_flags & (ECF_PURE | ECF_CONST))) add_virtual_operand (opf_def); - else if (!(call_flags & ECF_CONST)) + else if (!(call_flags & ECF_CONST) + || (call_flags & ECF_NORETURN)) add_virtual_operand (opf_use); } }=