Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 09:10:29 +0100
From:      Matthias Andree <mandree@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-toolchain@freebsd.org
Subject:   Re: clang++ 3.3 issue (excessively slow compile vs. gcc 4.6 in just one file of a port)
Message-ID:  <528B1CF5.4020706@FreeBSD.org>
In-Reply-To: <EF23C57E-DA99-4655-A260-FE0732476304@FreeBSD.org>
References:  <528A8481.9010200@FreeBSD.org> <62194A12-1B41-48F6-8434-BA2181411020@FreeBSD.org> <528A93BF.3020707@FreeBSD.org> <C350407E-E262-4E47-B1A5-09F5374C1AED@FreeBSD.org> <528A9A88.80904@FreeBSD.org> <EF23C57E-DA99-4655-A260-FE0732476304@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 19.11.2013 08:49, schrieb Dimitry Andric:
> On 18 Nov 2013, at 23:54, Matthias Andree <mandree@FreeBSD.org> wrote:
> ...
>> Uploaded. http://people.freebsd.org/~mandree/ has:
>>
>> <http://people.freebsd.org/~mandree/ipsharpen.ii.xz>: the xzipped .ii
>> file (unpacked: 6.5 MB)
>>
>> <http://people.freebsd.org/~mandree/ipsharpen-compile%2bwarnings.txt>:=

>> compiler command line (make VERBOSE=3D1 MAKE_JOBS_UNSAFE=3Dyes)
>> and early warnings.
>=20
> 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:
>=20
> make -C /usr/src/lib/clang
> make -C /usr/src/usr.bin/clang/clang
> sudo make -C /usr/src/usr.bin/clang/clang install
>=20
> 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?

Best regards
Matthias



--EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKLHPUACgkQvmGDOQUufZWUCQCcCARaLwLmgWdYBdrF3/SN0d14
G3cAn2Xy+Bp0a55m6MMCZRYBD/yexsTR
=AvLQ
-----END PGP SIGNATURE-----

--EMAbdm0umH5I7xo2CoMjH4lE9a2Pt0FEH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?528B1CF5.4020706>