From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11588 invoked by alias); 9 Nov 2012 11:33:54 -0000 Received: (qmail 11541 invoked by uid 48); 9 Nov 2012 11:33:38 -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: Fri, 09 Nov 2012 11:33: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" Content-Transfer-Encoding: quoted-printable 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/msg00816.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54966 --- Comment #10 from vincenzo Innocente = 2012-11-09 11:33:37 UTC --- I've repeated the tests again on a different machine and the result are the same=20 gcc version 4.8.0 20121108 (experimental) [trunk revision 193333] (GCC)=20 at O3 lto degrades the performances in two cases, improves in another=E2=80= =A6 at O2 lto just degrades performance for two cases (different than O3) and d= oes not improve for the others with Ofast the differences are even more dramatic [innocent@vinavx0 bugs48]$ c++ -Ofast smatrix.ii -march=3Dnative -flto ; ta= skset -c 2 ./a.out size 5. v1: time in cycles 14255.6 size 5. v2: time in cycles 3699.28 size 5. v3: time in cycles 3715.55 size 6. v1: time in cycles 9179.85 size 6. v2: time in cycles 1906.91 size 6. v3: time in cycles 1812.73 [innocent@vinavx0 bugs48]$ c++ -Ofast smatrix.ii -march=3Dnative ; taskset = -c 2 ./a.out size 5. v1: time in cycles 13933.9 size 5. v2: time in cycles 2125.56 size 5. v3: time in cycles 1028.43 size 6. v1: time in cycles 28168 size 6. v2: time in cycles 3528.72 size 6. v3: time in cycles 2533.5 c++ -O3 smatrix.ii -march=3Dnative; taskset -c 2 ./a.out size 5. v1: time in cycles 13896.1 size 5. v2: time in cycles 2107.25 size 5. v3: time in cycles 1647.42 size 6. v1: time in cycles 31095.6 size 6. v2: time in cycles 3862.43 size 6. v3: time in cycles 3510.14 c++ -O3 smatrix.ii -march=3Dnative -flto; ./a.out size 5. v1: time in cycles 16183.5 size 5. v2: time in cycles 3696.15 size 5. v3: time in cycles 3698.27 size 6. v1: time in cycles 36323.5 size 6. v2: time in cycles 2799.47 size 6. v3: time in cycles 2705.73 [innocent@vinavx0 bugs48]$ taskset -c 2 ./a.out size 5. v1: time in cycles 16150.1 size 5. v2: time in cycles 3718.54 size 5. v3: time in cycles 3784.38 size 6. v1: time in cycles 36326.3 size 6. v2: time in cycles 2785.33 size 6. v3: time in cycles 2714.69 c++ -O2 smatrix.ii -march=3Dnative -flto ; taskset -c 2 ./a.out size 5. v1: time in cycles 13809.2 size 5. v2: time in cycles 3999.39 size 5. v3: time in cycles 4186.2 size 6. v1: time in cycles 35057.3 size 6. v2: time in cycles 4657.59 size 6. v3: time in cycles 4766.62 c++ -O2 smatrix.ii -march=3Dnative; taskset -c 2 ./a.out size 5. v1: time in cycles 11300.6 size 5. v2: time in cycles 2877.27 size 5. v3: time in cycles 2947.01 size 6. v1: time in cycles 30520 size 6. v2: time in cycles 4623.54 size 6. v3: time in cycles 5287.95