Bug 1030706 - Disable PGO in js/src for MSVC 2010. r=glandium
authorJan de Mooij <jdemooij@mozilla.com>
Wed, 16 Jul 2014 10:32:57 +0200
changeset 215102 f93457a01cf74de7595042a8f4e1af52a576edf0
parent 215101 e47c703b96e49af245319687419a2a17244db010
child 215103 450feb1d31e18e289d2dea40244a148320a742a2
child 215149 a078bf8b709dafe3d9337a1fdbf550950a6b7135
push id3857
push userraliiev@mozilla.com
push dateTue, 02 Sep 2014 16:39:23 +0000
treeherdermozilla-beta@5638b907b505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1030706
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1030706 - Disable PGO in js/src for MSVC 2010. r=glandium
js/src/moz.build
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -398,17 +398,20 @@ if CONFIG['HAVE_LINUX_PERF_EVENT_H']:
         'perf/pm_linux.cpp'
     ]
     SOURCES['perf/pm_linux.cpp'].flags += [CONFIG['LINUX_HEADERS_INCLUDES']]
 else:
     SOURCES += [
         'perf/pm_stub.cpp'
     ]
 
-MSVC_ENABLE_PGO = True
+# Disable PGO for MSVC 2010 due to unpredictable performance, see
+# bug 1030706.
+if CONFIG['_MSC_VER'] != '1600':
+    MSVC_ENABLE_PGO = True
 
 HOST_SOURCES += [
     'jskwgen.cpp',
 ]
 
 HOST_SIMPLE_PROGRAMS += [
     'host_%s' % f.replace('.cpp', '') for f in HOST_SOURCES
 ]