From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1A1E3858413; Fri, 12 Nov 2021 21:25:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1A1E3858413 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103195] [12 Regression] tfft2 text grows by 70% with -Ofast since r12-5113-gd70ef65692fced7a Date: Fri, 12 Nov 2021 21:25:12 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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, 12 Nov 2021 21:25:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103195 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjambor at suse dot cz --- Comment #4 from Jan Hubicka --- OK, quite surprisingly the code size growth is due to ipa-cp. Due to early modref, we get two aggregate jump functions: value: 0x0, mask: 0xffffffffffffffe0 VR [1, -1] param 3: UNKNOWN + Aggregate passed by reference: + offset: 0, type: integer(kind=3D4), CONST: 33554432 value: 0x0, mask: 0xfffffffffffffffc VR [1, -1] param 4: CONST: &C.4517 -> -1 @@ -747,6 +744,8 @@ value: 0x0, mask: 0xffffffffffffffe0 VR [1, -1] param 3: UNKNOWN + Aggregate passed by reference: + offset: 0, type: integer(kind=3D4), CONST: 33554432 value: 0x0, mask: 0xfffffffffffffffc VR [1, -1] param 4: CONST: &C.4512 -> 1 and later we decide to clone: + Estimating body: rfft/1 + Known to be false: op3[ref offset: 0] <=3D 0, op3[ref offset: 0] =3D=3D= 1, op3[ref offset: 0] =3D=3D 2, op3[ref offset: 0] changed + size:602 time:9868.835632 nonspec time:9884.134781 loops with known iterations:0.470881 known strides:0.000000 + - estimates for value 33554432 for param #3 npts[ref offset: 0]: time_benefit: 109.299, size: 602 so the cost metric says that cloning will speed up the function by 0.1% however good clonning oportunity seems happy: + - considering value 33554432 for param #3 npts, offset: 0 (caller_count: = 2) + good_cloning_opportunity_p (time: 109.299, size: 602, freq_sum: 16.18= 18) -> evaluation: 2937.97, threshold: 500 and we clone + Creating a specialized node of rfft/1. + adding an extra known scalar value &x for param #0 x + adding an extra known scalar value &trg for param #1 trg + adding an extra known scalar value &ibi for param #2 ibi + replacing param #0 x with const &x + replacing param #1 trg with const &trg + replacing param #2 ibi with const &ibi=