From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 82FDA2DB32 for ; Thu, 25 Oct 2018 07:17:07 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ya4tPh-qos0S for ; Thu, 25 Oct 2018 07:17:07 -0400 (EDT) Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 3AAF82DB30 for ; Thu, 25 Oct 2018 07:17:07 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] Re: [PATCH v2 2/3] Add LTO support Date: Thu, 25 Oct 2018 14:17:04 +0300 Message-ID: <9760627.QcpKpM8H4k@localhost> In-Reply-To: <20181017071324.cavj23u5bvjpbzxb@tkn_work_nb> References: <20181016180902.GA5454@chai> <20181017071324.cavj23u5bvjpbzxb@tkn_work_nb> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2303201.K4xhDZd5XE"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Alexander Turenko Cc: Konstantin Osipov , tarantool-patches@freelists.org, AKhatskevich --nextPart2303201.K4xhDZd5XE Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Seems OK On Wednesday, October 17, 2018 10:13:25 AM MSK Alexander Turenko wrote: > On Tue, Oct 16, 2018 at 09:09:02PM +0300, Konstantin Osipov wrote: > > * Alexander Turenko [18/10/15 10:15]: > > > From: AKhatskevich > > > > > > Added -DENABLE_LTO=ON/OFF cmake option, OFF by default. > > > > > > LTO speeds up cpu-intensive workloads by up to 20% (see [1] and [2]). > > > > > Requirements for LTO enabling: > > to enable LTO, not "for LTO enabling". > > > > The same applies to cmake message: > > > +if(CMAKE_VERSION VERSION_LESS 3.9) > > > + message(FATAL_ERROR "cmake >= 3.9 is needed for LTO enabling") > > > +endif() > > Fixed. > > > > + > > > +# Set 'CMP0069 NEW' behaviour for this project to support > > > +# compilers other than Intel Compiler and suppress cmake > > > +# warnings on the unset policy. > > > +cmake_policy(SET CMP0069 NEW) > > > > Please describe what this policy is about, not only just what it > > is for. > > -# Set 'CMP0069 NEW' behaviour for this project to support > -# compilers other than Intel Compiler and suppress cmake > -# warnings on the unset policy. > +# 'CMP0069 NEW' behaviour enables LTO for compilers other then > +# Intel Compiler when CMAKE_INTERPROCEDURAL_OPTIMIZATION is > +# enabled and provides CheckIPOSupported module. We set the policy > +# to support LTO with GCC / Clang and to suppress cmake warnings > +# on the unset policy. > > > > + > > > +# Retain 'CMP0069 NEW' behaviour after > > > +# 'cmake_minimum_required(VERSION ...) in subprojects to > > > +# avoid cmake warnings on the unset policy. > > > +set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) --nextPart2303201.K4xhDZd5XE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEFZT35EtIMRTDS5hJnoTdFFzh6LUFAlvRpjAACgkQnoTdFFzh 6LXpqwgAxG3BaS00non5U8RWkrzTRH9bghmUyqzReazuurHCv53r/WEhI7/NXq0x 7JpcOMYnhOvNMQyEKuvwf5cUMJfbPYJY30ic6Wccr/GZphvWoGl2fm+C8X8VhCSY JjwOkOxneL47KEra5l2e5QdxM2cZn5FKlMrQUIBsT3VBRcRgfb80whrzuhomGWiF 7LooBFzxi7KGP6YCvGPBIcJPYTJy1wxVE/0lG3wyvf8i1RskL8JP+LHBjxurcmi3 Vj3Jt0L8ed9V89ldhyGS/cOZZ18t10qZaGjLLUIjB2ZC8+Inq+8e2aZvKxAvLvhY rkHhNxmueEmkg/2ZH7kh2MPPoYvngA== =EzgW -----END PGP SIGNATURE----- --nextPart2303201.K4xhDZd5XE--