From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AED393938808; Tue, 17 Mar 2020 12:18:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AED393938808 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584447507; bh=wZKfeChrXwSaF8vGUOPdGTcwURVxt2pyFEQGlixMOts=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KYgpF0fXt8X6J/Vf3nN/Wo7OVwgmpCtoBRyW4P+6jx+J8d+q+KIE6tWALFJAiHOuL hfm2hgddr1ksliJBAUvkKio6nf4z6t4//aq2J2FWKzhqkpNZ6H3asuUdkU9fo9KPvP RhZgKQIsG2PegJk3pkvUVoSAsnNcJptqnb4YuaYA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/51663] Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program Date: Tue, 17 Mar 2020 12:18:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka 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: Tue, 17 Mar 2020 12:18:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51663 --- Comment #15 from Richard Biener --- (In reply to Tom de Vries from comment #13) > F.i., an open question for me is the following: I'm now using > -flto-partition=3Dnone for testing, but maybe 1to1 should yield better re= sults? I guess it better mimics how the testcases are set up, but I think the differences will be due to the other issues so the exact partitioning shouldn't matter (you likely always get a single partition and thus behavior equal to -flto-partition=3Dnone or -flto-partition=3Done by defaul= t). -flto-partition=3Dnone will be faster because it elides the LTRANS IL strea= ming.=