<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 14, 2016, at 11:33 AM, Quentin Colombet via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hi Matthias,</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">On Mar 14, 2016, at 11:12 AM, Matthias Braun via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:<br class=""><br class="">Author: matze<br class="">Date: Mon Mar 14 13:12:36 2016<br class="">New Revision: 263456<br class=""><br class="">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=263456&view=rev" class="">http://llvm.org/viewvc/llvm-project?rev=263456&view=rev</a><br class="">Log:<br class="">cmake/caches: Add some comments, more aggressive release mode<br class=""><br class="">Added:<br class="">  test-suite/trunk/cmake/caches/Release_Haswell.cmake<br class="">Modified:<br class="">  test-suite/trunk/cmake/caches/Debug.cmake<br class="">  test-suite/trunk/cmake/caches/Release.cmake<br class=""><br class="">Modified: test-suite/trunk/cmake/caches/Debug.cmake<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Debug.cmake?rev=263456&r1=263455&r2=263456&view=diff" class="">http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Debug.cmake?rev=263456&r1=263455&r2=263456&view=diff</a><br class="">==============================================================================<br class="">--- test-suite/trunk/cmake/caches/Debug.cmake (original)<br class="">+++ test-suite/trunk/cmake/caches/Debug.cmake Mon Mar 14 13:12:36 2016<br class="">@@ -1,3 +1,5 @@<br class="">+# Lowest optimization level and maximum debug information; A typical developer<br class="">+# configuration.<br class="">+set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")<br class="">set(CMAKE_C_FLAGS_DEBUG "-O0 -g" CACHE STRING "")<br class="">set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g" CACHE STRING "")<br class="">-set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "")<br class=""><br class="">Modified: test-suite/trunk/cmake/caches/Release.cmake<br class="">URL: <a href="http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Release.cmake?rev=263456&r1=263455&r2=263456&view=diff" class="">http://llvm.org/viewvc/llvm-project/test-suite/trunk/cmake/caches/Release.cmake?rev=263456&r1=263455&r2=263456&view=diff</a><br class="">==============================================================================<br class="">--- test-suite/trunk/cmake/caches/Release.cmake (original)<br class="">+++ test-suite/trunk/cmake/caches/Release.cmake Mon Mar 14 13:12:36 2016<br class="">@@ -1,4 +1,9 @@<br class="">-set(CMAKE_C_FLAGS_RELEASE "-O3 -flto" CACHE STRING "")<br class="">-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -flto" CACHE STRING "")<br class="">+# Aggressive settings to produce fast code.<br class="">+set(OPTFLAGS "${OPTFLAGS} -O3 -march=native -fomit-frame-pointer -flto -DNDEBUG”)<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I may be completely off as I actually don’t know when Release.cmake is used, but I am not sure I want the "-march=native” to be applied silently. The rationale is that we possibly cannot share our binary anymore between different CPUs.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote>This stuff is still in early experimental phases and not used by any in-production bots yet AFAIK. But the plan is to put common bot configurations there so it gets easy to reproduce a given build and indeed -march=XXX is a bad idea for reproducability across machines. In fact I realized that too and created Release_Haswell.cmake after ponding a bit over it and then forgot to remove the -march=native from the Release.cmake :)</div><div><br class=""></div><div>- Matthias</div><div><br class=""></div></body></html>