From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F17A385802B; Mon, 1 Aug 2022 23:21:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F17A385802B From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/106499] LTO runs forever in libfabric 1.15.1 linking Date: Mon, 01 Aug 2022 23:21:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: unknown X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: 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: Mon, 01 Aug 2022 23:21:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106499 --- Comment #12 from Andrew Pinski --- (In reply to Tomasz K=C5=82oczko from comment #11) > (In reply to Andrew Pinski from comment #10) > > The flatten attribute is designed to override all heuristics in the com= piler > > that is designed to not cause the gignatic memory usage and compile tim= e. > > Basically you told the compiler to ignore those. >=20 > Now I'm a bit confused because in this case looks like use flatten attrib= ute > caused high memory usage. > Does it mean that (generally) flatten should not be used at the same time > with inline? The flatten attribute combined with LTO causes the high memory usage. Flatten means inline everything into that function and ignore heuristics th= at might otherwise block the inlining. Basically this means flatten should not be used combined with LTO. With LTO= you could just allow the heuristics do its job and back off as needed.=