From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16270 invoked by alias); 13 Dec 2010 01:47:01 -0000 Received: (qmail 16258 invoked by uid 22791); 13 Dec 2010 01:47:00 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Mon, 13 Dec 2010 01:46:56 +0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/44563] GCC uses a lot of RAM when compiling a large numbers of functions X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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: Mon, 13 Dec 2010 01:47: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-12/txt/msg01351.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44563 --- Comment #10 from Jan Hubicka 2010-12-13 01:46:39 UTC --- Created attachment 22730 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22730 Fix for inline cost problem The attached patch fixes the inliner cost problem so we converge at -O1. It is bit brute force, but I guess it should work well in practice. With the fix -O1 converges in 90 secons. Profile is similar to one at -O0 14898 6.7090 libc-2.11.1.so libc-2.11.1.so _int_malloc 7981 3.5941 cc1 cc1 bitmap_set_bit 5993 2.6988 libc-2.11.1.so libc-2.11.1.so memset 5063 2.2800 cc1 cc1 htab_delete 4091 1.8423 libc-2.11.1.so libc-2.11.1.so _IO_vfscanf 3849 1.7333 no-vmlinux no-vmlinux /no-vmlinux 3807 1.7144 libc-2.11.1.so libc-2.11.1.so _int_free 3632 1.6356 cc1 cc1 df_note_compute 3469 1.5622 libc-2.11.1.so libc-2.11.1.so malloc_consolidate 3352 1.5095 libc-2.11.1.so libc-2.11.1.so msort_with_tmp 2978 1.3411 cc1 cc1 htab_traverse_noresize 2941 1.3244 libc-2.11.1.so libc-2.11.1.so free 2824 1.2717 cc1 cc1 bitmap_clear_bit 2653 1.1947 cc1 cc1 df_ref_create_structure 2429 1.0938 libc-2.11.1.so libc-2.11.1.so malloc 2239 1.0083 cc1 cc1 df_insn_refs_collect