From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D578E3858CDA; Mon, 27 Mar 2023 07:43:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D578E3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679903000; bh=ZA7ZgkEm3hOOSWZiDUDEZ7rRnDICsB86SEXxQsN+YRs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YMkT9GP5gWVoYG+rUOCdbFzDBYfx6ZIcfyYnoxg/VPCM4G6q8+WUp1vG+kC6tZkHO fHEm7wgoCLOUDYndQSQz/Baxgvi5c8ofzoJidIHxE+ST2MrIACL60sgLTjuhXqOBaz GWV8RzNHMK0YeHrRj7Hl7H49D6ciyUXzRxEtLtA8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109213] [13 Regression] -Os generates significantly more code since r13-723 Date: Mon, 27 Mar 2023 07:43:20 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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=3D109213 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 --- Comment #7 from Richard Biener --- So the gist is that IMHO inlining shouldn't regress when 40 <- 264 is changed to 0 <- 264 since the overall stack size is smaller and the absolute growth is the same. That's just counter-intuitive. This behavior isn't a recent regression, but the testcase regressed in 13 because of the extra variable elimination. For this reason making P2, a regression when that stack limit related behavior was introduced. Honza?=