From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B1C93858422; Mon, 22 Jan 2024 09:11:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B1C93858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705914714; bh=qrrvoS+zdPvT+bqYD+WAcZUeyDsLkOXw3DL/gmeeW2o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=R7prGv7G+m0aMUO48o7cD8S3pbWy10ROMB+mDVDjaVHs/iwc+0WA+tP/wEN9e0xAQ NgVUlaqEnyrhGog73CQ1ekCFoZvaWf+d3dVaCbPsQizCRLWbjqoPphtbHKPI6QvDJ/ KKBoxSU1cmkOXVnb1eg5SX11q2mUm7SOOo0kaPjw= From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/111267] [14 Regression] Codegen regression from i386 argument passing changes Date: Mon, 22 Jan 2024 09:11:52 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: roger at nextmovesoftware dot com 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=3D111267 --- Comment #12 from Richard Sandiford --- I don't object to the patch, but for the record: the current heuristics go = back a long way. Although I reworked the pass to use rtl-ssa a few years ago, I tried as far as possible to preserve the old heuristics (tested by making s= ure that there were no unexplained differences over a large set of targets). I wouldn't characterise the old heuristics as a logic error. Although I di= dn't write them, my understanding is that they were being deliberately conservat= ive, in particular due to the risk of introducing excess register pressure. So this change seems potentially quite invasive for stage 4. Perhaps it'll work out =E2=80=94 if so, great! But if there is some fallout, I think we = should lean towards reverting the patch and revisiting in GCC 15.=