From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1D533858415; Thu, 23 May 2024 02:11:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1D533858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716430267; bh=jaTs6SypRmxfJm3tpUEsmXQAasu7D0TcY5lwiooyAV4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mWiUOe5DXYGQ3xHeGa7fHqHLzvNHC/7I4RxUap+/XpwtbCktcdlaoFoQEJYHQ4bld wB51D7DQQjyK1IDaLaPMdwuwLGd0V2ZsAKDgqB2cMHj5ed3L85zaPyfkKmr9MAC/mP 2LWoW6VTfyaaXAJshQXITap70qEGUUmO4iRrPCpE= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/115201] Recursive binary search is incorrectly inlined Date: Thu, 23 May 2024 02:11:07 +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: 14.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: attachments.created 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=3D115201 --- Comment #4 from Andrew Pinski --- Created attachment 58273 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58273&action=3Dedit Better (reduced testcase) The tail call happens in the foo2 case while not in foo1. This is due to st= ruct returns are not always handled for tail call ..=