From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12542 invoked by alias); 12 Nov 2012 13:20:06 -0000 Received: (qmail 12284 invoked by uid 48); 12 Nov 2012 13:19:44 -0000 From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54966] Does LTO requires a larger inline-unit-growth? Date: Mon, 12 Nov 2012 13:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: vincenzo.innocente at cern dot ch X-Bugzilla-Status: WAITING 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 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: 2012-11/txt/msg01020.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54966 --- Comment #11 from vincenzo Innocente 2012-11-12 13:19:42 UTC --- much better with gcc version 4.8.0 20121112 (experimental) [trunk revision 193427] (GCC) but for "size 6. v1" with lto [innocent@vinavx0 bugs48]$ c++ -Ofast smatrix.ii -march=native ; taskset -c 2 ./a.out size 5. v1: time in cycles 6925.32 size 5. v2: time in cycles 2123.49 size 5. v3: time in cycles 1067.43 size 6. v1: time in cycles 31216.7 size 6. v2: time in cycles 3521.98 size 6. v3: time in cycles 2523.74 [innocent@vinavx0 bugs48]$ c++ -Ofast smatrix.ii -march=native -flto; taskset -c 2 ./a.out size 5. v1: time in cycles 6367.09 size 5. v2: time in cycles 1181.97 size 5. v3: time in cycles 1194.82 size 6. v1: time in cycles 34811.5 size 6. v2: time in cycles 1909.71 size 6. v3: time in cycles 1803.48 of course inlining also the case " v1" would be even better !(the code is equivalent to v2 and v3) I've some other more complex functions where inline is "different" than 4.7.2 but not necessarily better will try to cut a test case