From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 160BF39858B3; Mon, 22 Jun 2020 07:39:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 160BF39858B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592811542; bh=Yhkeu4fATQicvR3qC6cGf43B4H+rdDhSm8GeWUET1BU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fm5XA21j/41zBaWrq+pIaRjkFd5k7daWoEaGa6QQ8S1iAzUjrgXnOj1gjh1UmXyer qtXUUF7MZNE3SjH/HKcvs9N8UWOwr7qg7vM4symAqISxWR0bAGSyD9stnnaVim9lrc gpW7P+yFtkBuoEqIePZ38VGnd4KHWHldPAuYnTZg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/95775] Command line argument for target_clones? Date: Mon, 22 Jun 2020 07:39:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component bug_severity 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, 22 Jun 2020 07:39:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95775 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org Component|target |ipa Severity|normal |enhancement --- Comment #1 from Richard Biener --- But it will blow up code-size considerably. Eventually with -flto and the library constraining on what symbols it exports one could figure the minimal set of functions with IFUNC relocations at least. Using profile-feedback might also able to concentrate on interesting functions. So without some major work I don't think simply slapping target_clones on each function is going to fly in practice. Eventually it should be possible to do sth like target_clones(auto) where with a new option, the target (or the user) can define "default" targets to clone for but the user still figures which are the important functions to optimize [and GCC may, via IPA "spread" the cloned cgraph portion a bit]= .=