Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 82703007: Support Visual C++ PGO in Ninja generator (Closed)

Created:
7 years, 1 month ago by yukawa
Modified:
7 years ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Support Visual C++ PGO in Ninja generator This CL teaches msvs_emulation.py about following settings so that ninja ganarate can handle Progile-Guided Optiomization (PGO) settings for Visual C++. - VCLinkerTool.LinkTimeCodeGeneration -- 2: /LTCG:PGINSTRUMENT -- 3: /LTCG:PGOPTIMIZE -- 4: /LTCG:PGUPDATE - VCLinkerTool.ProfileGuidedDatabase Note that LinkTimeCodeGenerationOption.LinkTimeCodeGenerationOptionUse is partially supported for LTCG (Link-Time Code Generator). This CL also adds unittests for LTCG in addition to unittests for PGO. BUG=gyp:385 TEST=gyptest.py test/win/gyptest-link-ltcg.py test/win/gyptest-link-pgo.py R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1803

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -1 line) Patch
M pylib/gyp/msvs_emulation.py View 1 2 3 3 chunks +18 lines, -1 line 0 comments Download
A test/win/gyptest-link-ltcg.py View 1 1 chunk +36 lines, -0 lines 0 comments Download
A test/win/gyptest-link-pgo.py View 1 1 chunk +75 lines, -0 lines 0 comments Download
A test/win/linker-flags/inline_test.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
A test/win/linker-flags/inline_test.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
A test/win/linker-flags/inline_test_main.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
A test/win/linker-flags/ltcg.gyp View 1 1 chunk +42 lines, -0 lines 0 comments Download
A test/win/linker-flags/pgo.gyp View 1 2 3 1 chunk +143 lines, -0 lines 0 comments Download
A test/win/linker-flags/update_pgd.py View 1 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
yukawa
Hi, I investigated https://code.google.com/p/gyp/issues/detail?id=343 and concluded that our implementation is correct. This CL adds unittests ...
7 years, 1 month ago (2013-11-23 14:55:13 UTC) #1
scottmg
Thanks for doing this! https://codereview.chromium.org/82703007/diff/1/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/82703007/diff/1/pylib/gyp/msvs_emulation.py#newcode490 pylib/gyp/msvs_emulation.py:490: ld('LinkTimeCodeGeneration', (Sorry, not at a ...
7 years, 1 month ago (2013-11-23 17:15:13 UTC) #2
yukawa
Thank you for the review. PTAL? https://codereview.chromium.org/82703007/diff/1/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/82703007/diff/1/pylib/gyp/msvs_emulation.py#newcode490 pylib/gyp/msvs_emulation.py:490: ld('LinkTimeCodeGeneration', On 2013/11/23 ...
7 years ago (2013-11-25 14:04:12 UTC) #3
scottmg
Great work! Sorry it got so complex to test. I agree the build flow is ...
7 years ago (2013-11-25 15:13:39 UTC) #4
yukawa
On 2013/11/25 15:13:39, scottmg wrote: > http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx suggests that it's > possible to use /OUT ...
7 years ago (2013-12-03 16:10:41 UTC) #5
yukawa
7 years ago (2013-12-03 16:12:12 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r1803.

Powered by Google App Engine
This is Rietveld 408576698