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

Issue 2333843002: Add use_thin_lto switch to start evaluating ThinLTO. (Closed)

Created:
4 years, 3 months ago by krasin1
Modified:
4 years, 3 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, pcc1, kcc1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add use_thin_lto switch to start evaluating ThinLTO. Local experiments show that it's possible to compile Chrome and tests with ThinLTO, and the linking time is 3.5x smaller compared to the full LTO. With additional profiling it might reach 10x, as there're hints that Chrome is hitting some corner cases, which can be optimized. The plan is to setup ThinLTO / Clang ToT buildbot, then port whole program devirtualization, then CFI, then get rid of full LTO completely. BUG=645295 Committed: https://crrev.com/8e6253caa689d2c20f5173406f1e7cb64d7f9b0f Cr-Commit-Position: refs/heads/master@{#418098}

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : spelling #

Total comments: 2

Patch Set 4 : merge -flto and -whole-program-vtables flags #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -13 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 3 2 chunks +23 lines, -13 lines 0 comments Download
M build/toolchain/toolchain.gni View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
krasin1
Hi Dirk, this is the first step in getting LTO fast. It seems that ThinLTO ...
4 years, 3 months ago (2016-09-12 20:36:11 UTC) #2
Dirk Pranke
lgtm w/ nit. https://codereview.chromium.org/2333843002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2333843002/diff/40001/build/config/compiler/BUILD.gn#newcode467 build/config/compiler/BUILD.gn:467: ldflags += [ "-fwhole-program-vtables" ] Can ...
4 years, 3 months ago (2016-09-12 21:15:38 UTC) #5
krasin1
https://codereview.chromium.org/2333843002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2333843002/diff/40001/build/config/compiler/BUILD.gn#newcode467 build/config/compiler/BUILD.gn:467: ldflags += [ "-fwhole-program-vtables" ] On 2016/09/12 21:15:38, Dirk ...
4 years, 3 months ago (2016-09-12 21:35:06 UTC) #6
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/2333843002/60001
4 years, 3 months ago (2016-09-12 22:02:27 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-12 23:17:10 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 23:20:38 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8e6253caa689d2c20f5173406f1e7cb64d7f9b0f
Cr-Commit-Position: refs/heads/master@{#418098}

Powered by Google App Engine
This is Rietveld 408576698