From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5084 invoked by alias); 26 Oct 2010 08:01:12 -0000 Received: (qmail 5075 invoked by uid 22791); 26 Oct 2010 08:01:12 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_KM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Oct 2010 08:01:05 +0000 From: "andi-gcc at firstfloor dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/46176] profile feedback causes 20% linux kernel binary growth X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andi-gcc at firstfloor dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 26 Oct 2010 08:01:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02140.txt.bz2 Message-ID: <20101026080100.sA5huyg_OCdnUbQ7l_jwLLe1DYojVYFTCcSoay2UUBw@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46176 --- Comment #2 from Andi Kleen 2010-10-26 08:01:01 UTC --- Thanks. Unrolling seems to be part of it, but not all. I rebuilt/retrained with -fno-unroll-loops Trained: text data bss dec hex filename 12774489 1198572 1357680 15330741 e9edb5 vmlinux Untrained: 11136452 1200876 1357552 13694880 d0f7a0 ../obj-work2/vmlinux So it's only 13% difference now, but still a lot. function old new delta r600_kms_blit_copy 2640 16394 +13754 static.do_con_write - 10163 +10163 static.rv770_startup - 9541 +9541 r600_blit_copy 10605 19626 +9021 e1000_setup_copper_link - 8894 +8894 kmem_cache_create 1385 10227 +8842 des3_ede_encrypt 1203 8208 +7005 des3_ede_decrypt 1203 8208 +7005