From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19150 invoked by alias); 30 Oct 2010 20:06:20 -0000 Received: (qmail 19135 invoked by uid 22791); 30 Oct 2010 20:06:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Sat, 30 Oct 2010 20:06:09 +0000 From: "zeev.tarantov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46228] code produced for STL container is worse in 4.5.1 than in 4.4.5 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: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: zeev.tarantov at gmail dot com 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: 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: Sat, 30 Oct 2010 20:06: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/msg02603.txt.bz2 Message-ID: <20101030200600.TGtKoF67zMh8yWI1JHRHRvTcoawi3MFdQBh5IviismU@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46228 --- Comment #9 from Zeev Tarantov 2010-10-30 20:05:57 UTC --- Using -fwhole-program I got sane code. But almost all programs that are not trivial cannot be compiled with -fwhole-program without LTO. At least on 4.5 branch LTO is not quite stable. "- we need to improve heuristics to figure out that inlining is smaller than call sequence (if it really is)" This would be great.