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

Issue 2507333002: Add the possibility to build with PGO when using Clang (Closed)

Created:
4 years, 1 month ago by inglorion
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the possibility to build with PGO when using Clang r257133 introduced chrome_pgo_phase to allow building Chrome with profile-guided optimization. Thus far, support for this has only been implemented for MSVC on Windows. This change allows PGO to be used with Clang, as well. BUG=666152 Committed: https://crrev.com/0454d1c39637beb1fb084bea057d614f6908a7ae Cr-Commit-Position: refs/heads/master@{#436067}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add the possibility to build with PGO when using Clang #

Total comments: 3

Patch Set 3 : Add the possibility to build with PGO when using Clang #

Total comments: 2

Patch Set 4 : Add the possibility to build with PGO when using Clang #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -31 lines) Patch
M build/config/compiler/compiler.gni View 1 2 chunks +1 line, -9 lines 0 comments Download
A build/config/compiler/pgo/BUILD.gn View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
A build/config/compiler/pgo/pgo.gni View 1 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/BUILD.gn View 1 2 3 chunks +12 lines, -22 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
inglorion
Please take a look. I imagine this needs some polishing.
4 years, 1 month ago (2016-11-17 00:33:11 UTC) #3
hans
Nice! This goes beyond my gn-foo, so I think Sebastien and Nico can comment better ...
4 years, 1 month ago (2016-11-17 00:46:08 UTC) #5
inglorion
Thanks for your comments, hans! I've changed the description to imperative style, created a bug, ...
4 years, 1 month ago (2016-11-17 01:53:39 UTC) #9
Sébastien Marchand
I like the idea of moving the PGO settings into their own files, but I ...
4 years, 1 month ago (2016-11-17 17:31:15 UTC) #10
inglorion
Hi Sébastien, Thank you for your review. Addressing your points: On 2016/11/17 17:31:15, Sébastien Marchand ...
4 years, 1 month ago (2016-11-18 02:07:36 UTC) #11
Sébastien Marchand
On 2016/11/18 02:07:36, inglorion wrote: > Hi Sébastien, > > Thank you for your review. ...
4 years, 1 month ago (2016-11-18 16:55:25 UTC) #12
inglorion
Thanks again for your review, Sébastien. I have made the following changes: * PGO configuration ...
4 years ago (2016-11-24 00:53:21 UTC) #13
Sébastien Marchand
Thanks for doing this! I've a few extra comments but I like this approach. This ...
4 years ago (2016-11-24 15:57:07 UTC) #14
inglorion
On 2016/11/24 15:57:07, Sébastien Marchand wrote: > https://codereview.chromium.org/2507333002/diff/20001/build/config/compiler/pgo/BUILD.gn#newcode12 > build/config/compiler/pgo/BUILD.gn:12: config("default_pgo_ldflags") { > If we ...
4 years ago (2016-12-02 02:10:49 UTC) #15
Nico
I only glanced through, looks great to me. lgtm once Seb/Hans are happy. https://codereview.chromium.org/2507333002/diff/40001/build/config/compiler/pgo/BUILD.gn File ...
4 years ago (2016-12-02 02:48:11 UTC) #16
Sébastien Marchand
Thanks for addressing all my comments! This approach lgtm, thanks for taking care of the ...
4 years ago (2016-12-02 13:24:48 UTC) #17
hans
lgtm too
4 years ago (2016-12-02 17:47:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507333002/40001
4 years ago (2016-12-02 19:56:34 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/271451) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years ago (2016-12-02 20:03:52 UTC) #22
inglorion
Silly me. Configs are always evaluated, even if they aren't used, so I can't assert ...
4 years ago (2016-12-02 21:39:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507333002/60001
4 years ago (2016-12-02 21:40:09 UTC) #26
inglorion
https://codereview.chromium.org/2507333002/diff/40001/build/config/compiler/pgo/BUILD.gn File build/config/compiler/pgo/BUILD.gn (right): https://codereview.chromium.org/2507333002/diff/40001/build/config/compiler/pgo/BUILD.gn#newcode69 build/config/compiler/pgo/BUILD.gn:69: "-Wno-error=profile-instr-out-of-date", Sorry, I missed your comment earlier. I plan ...
4 years ago (2016-12-02 21:44:25 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-02 23:04:52 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-02 23:07:53 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0454d1c39637beb1fb084bea057d614f6908a7ae
Cr-Commit-Position: refs/heads/master@{#436067}

Powered by Google App Engine
This is Rietveld 408576698