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

Issue 2428503002: [ignition/turbo] Add liveness analysis for the accumulator (Closed)

Created:
4 years, 2 months ago by Leszek Swirski
Modified:
4 years, 2 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ignition/turbo] Add liveness analysis for the accumulator Adds a boolean flag to the liveness analysis which makes it also analyze the accumulator. This can help prevent the accumulator escaping loops, as well as decreasing the number of distinct state values nodes in the graph. The flag is a kind of ugly way to hack this in, however it is probably the simplest to add, and (more importantly) to remove once the AST graph builder is gone. I measure a 2.6% improvement on Mandreel on my x64 machine, and a ~2% improvement on Navier-Stokes. Other improvements are expected. Committed: https://crrev.com/0c1727ad790463df7f85664613ed4a66e59df429 Cr-Commit-Position: refs/heads/master@{#40359}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove unused accumulator state value read in release build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -33 lines) Patch
M src/compiler/ast-graph-builder.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 4 chunks +11 lines, -2 lines 0 comments Download
M src/compiler/liveness-analyzer.h View 1 6 chunks +28 lines, -7 lines 0 comments Download
M src/compiler/liveness-analyzer.cc View 1 2 7 chunks +43 lines, -17 lines 0 comments Download
M test/unittests/compiler/liveness-analyzer-unittest.cc View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Leszek Swirski
Hey Jaro, here's a patch for the accumulator liveness analysis. Let me know what you ...
4 years, 2 months ago (2016-10-17 10:11:51 UTC) #4
Jarin
Very nice. lgtm. For readability, it might be nice to introduce an enum instead of ...
4 years, 2 months ago (2016-10-17 11:26:10 UTC) #11
Leszek Swirski
Thanks. There's actually a version I have locally which had exactly this enum (mine has ...
4 years, 2 months ago (2016-10-17 11:43:53 UTC) #12
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/2428503002/40001
4 years, 2 months ago (2016-10-17 11:44:10 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 11:47:50 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 11:48:13 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0c1727ad790463df7f85664613ed4a66e59df429
Cr-Commit-Position: refs/heads/master@{#40359}

Powered by Google App Engine
This is Rietveld 408576698