From owner-freebsd-toolchain@FreeBSD.ORG Tue Nov 19 10:28:20 2013 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 41693671; Tue, 19 Nov 2013 10:28:20 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F36B92508; Tue, 19 Nov 2013 10:28:19 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id F27A25C43; Tue, 19 Nov 2013 11:28:15 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_A6A80C7C-84BD-40E8-B006-16C7DCF7E3A0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port) From: Dimitry Andric In-Reply-To: <528B1CF5.4020706@FreeBSD.org> Date: Tue, 19 Nov 2013 11:27:56 +0100 Message-Id: References: <528A8481.9010200@FreeBSD.org> <62194A12-1B41-48F6-8434-BA2181411020@FreeBSD.org> <528A93BF.3020707@FreeBSD.org> <528A9A88.80904@FreeBSD.org> <528B1CF5.4020706@FreeBSD.org> To: Matthias Andree X-Mailer: Apple Mail (2.1822) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 10:28:20 -0000 --Apple-Mail=_A6A80C7C-84BD-40E8-B006-16C7DCF7E3A0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 On 19 Nov 2013, at 09:10, Matthias Andree wrote: > Am 19.11.2013 08:49, schrieb Dimitry Andric: ... >> Ok, this looks like http://llvm.org/PR16474 , which has a relatively >> simple fix. I have attached it, can you please try it out? You can >> just apply the patch to /usr/src and do: >> >> make -C /usr/src/lib/clang >> make -C /usr/src/usr.bin/clang/clang >> sudo make -C /usr/src/usr.bin/clang/clang install >> >> It should basically recompile just one file, and re-link the clang >> executable. I tried building ipsharpen.ii at -O3, and it uses about >> 20 seconds now (on my relatively slow VM). > > Dimitry, > > thanks. > > The patch speeds up the compile by one and a half orders of magnitude, > and we're down to 30 s for my VM and compiling the .ii file. > > The .cc now compiles in 22 s, rather than 500 s. > > Excellent, problem solved! > > Can we commit this (what the LLVM PR calls "regression") fix so it > becomes part of 10.0-RELEASE? I will commit it to head tonight, and after the normal MFC period of 3 days I will ask re@ to approve merging it to stable/10. -Dimitry --Apple-Mail=_A6A80C7C-84BD-40E8-B006-16C7DCF7E3A0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlKLPTgACgkQsF6jCi4glqNqaACggqtpFy1JivxLw9yedA/XsISd D3MAoP5ps0Y78aIuRlYcOmdUU9IQxGLg =THdV -----END PGP SIGNATURE----- --Apple-Mail=_A6A80C7C-84BD-40E8-B006-16C7DCF7E3A0--