From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B39D63858408; Mon, 20 Mar 2023 17:36:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B39D63858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679333774; bh=VCfsiN/sTPwiXEo7mmrqu/c46BW2hDh0aUQQlLF4aGY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=weUaZuJxmrfzDAAoFCMPhTkVIJJJNEEj8Lp6r/PwkeBwBvrXxAzRKvFmOi1NDcvTt 93KXfeYZT6smRSGrHToOHGZ0FZgvlF/DsDbxAZrNGFEX03KA6JxP956f3ZOha7/xsg caT35CwKa9/MCWqlXsDBnAhHjNEvTLU9i6gOoNEU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109213] [13 Regression] -Os generates significantly more code Date: Mon, 20 Mar 2023 17:36:14 +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, needs-bisection 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: 13.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=3D109213 --- Comment #1 from Andrew Pinski --- The difference is due to inlining of m into main. The reason for the difference of inlining is due to removal of: p =3D {}; statement from main in dse which changes the overall cost of the TU ...=