From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B243038376C0; Fri, 10 Jun 2022 13:00:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B243038376C0 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/105917] [10/11/12/13 regression] Missed passthru jump function Date: Fri, 10 Jun 2022 13:00:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka 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: short_desc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2022 13:00:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105917 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Missed passthru jump |[10/11/12/13 regression] |function |Missed passthru jump | |function --- Comment #1 from Jan Hubicka --- Looking at the compiler explorer, the both testcases actually works up to g= cc 9.5: reta(a) [clone .constprop.0]: xorl %eax, %eax ret retba(b) [clone .isra.0] [clone .constprop.0]: jmp reta(a) [clone .constprop.0] main: xorl %edi, %edi jmp retba(b) [clone .isra.0] [clone .constprop.0] Clang optimizes main to return 0 which we don't due to lack of return functions. Also ISRA may trigger on reta+retb and break out the integer rather than substructure but doesn't.=