From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D5DD388CF1C; Thu, 15 Dec 2022 12:44:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D5DD388CF1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671108267; bh=dyiL0lxWSs+zWn41VOq08v3FgG5QRqEVzz/XRbnxf4M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sWIAZYZTmFj+G8AbikAqJTfXeu7jXEQEZBI80VNhaigqmDYM7zYnDgVURon1yMrna fSFREOS1DFYLRviu70evpvrHJkT2pzZpUbWG94N1HBFntS/iSds+4uB0XXEaX9bt6Q d/plpkTXqFl1CRvqgJ78evpWBArd8uE/IVPCXl5o= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108117] Wrong instruction scheduling on value coming from abnormal SSA Date: Thu, 15 Dec 2022 12:44:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D108117 --- Comment #9 from Alexander Monakov --- (In reply to Feng Xue from comment #8) > In another angle, because gcc already model control flow and SSA web for > setjmp/longjmp, explicit volatile specification is not really needed. That covers GIMPLE, but after transitioning to RTL, setjmp is not properly modeled anymore (like in old versions of GCC before Tree-SSA). Many RTL pas= ses simply refuse touching the function if it has a setjmp call, but as your example demonstrated, scheduling still can make a surprising transform.=