From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A3AF3385842E; Tue, 14 Dec 2021 15:08:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3AF3385842E From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/98782] [11/12 Regression] Bad interaction between IPA frequences and IRA resulting in spills due to changes in BB frequencies Date: Tue, 14 Dec 2021 15:08:23 +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: 11.0 X-Bugzilla-Keywords: missed-optimization, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris 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: 12.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 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: Tue, 14 Dec 2021 15:08:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98782 --- Comment #28 from Tamar Christina --- (In reply to pthaugen from comment #19) > I tried -fno-inline-functions-called-once and the patches on a Power9 > system. Following are the run times and spill counts (grep -c Spilling > exchange2.fppized.f90.298r.ira). Interesting that the spill counts increa= se > when -fno-inline-functions-called-once is added, but obviously that > additional spill is on cold paths since execution time improves. Compiler > options used are "-O3 -mcpu=3Dpower9 -fpeel-loops -funroll-loops -ffast-m= ath". >=20 > time(sec) Spill > base 473 3284 >=20 > no-inline-functions-called-once 370 5410 >=20 > patches 1 & 2 397 461 >=20 > patches 1 & 2 > + no-inline-functions-called-once 299 870 Ah thanks for testing!, so at least we know that all architectures are suffering from the same underlying issue :)=