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

Issue 2280673003: [turbofan] Separate typed optimizations from JSTypedLowering. (Closed)

Created:
4 years, 3 months ago by Benedikt Meurer
Modified:
4 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Separate typed optimizations from JSTypedLowering. Introduce a new TypedOptimization reducer that contains the type based optimization reduction steps, which are not (directly) related to lowering JavaScript operators based on types (which is what JSTypedLowering is supposed to do). This also addresses a chicken-and-egg problem that we see in the Octane/Mandreel benchmark where type based constant folding isn't applied to the numeric comparison operators introduced by the JSTypedLowering itself, and thus gives up to 10% speedup for the benchmark. BUG=v8:5267 Committed: https://crrev.com/f154c75a39308be6253de351bd4422033ba528fe Cr-Commit-Position: refs/heads/master@{#38928}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -388 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.h View 2 chunks +0 lines, -8 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 3 chunks +0 lines, -204 lines 0 comments Download
M src/compiler/pipeline.cc View 3 chunks +8 lines, -0 lines 0 comments Download
A src/compiler/typed-optimization.h View 1 chunk +73 lines, -0 lines 2 comments Download
A src/compiler/typed-optimization.cc View 1 chunk +257 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M test/unittests/compiler/js-typed-lowering-unittest.cc View 3 chunks +0 lines, -176 lines 0 comments Download
A test/unittests/compiler/typed-optimization-unittest.cc View 1 chunk +229 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (7 generated)
Benedikt Meurer
Hey Michi, This is a refactoring, plus a small performance improvement. Please take a look. ...
4 years, 3 months ago (2016-08-26 07:30:56 UTC) #6
Michael Starzinger
LGTM. https://codereview.chromium.org/2280673003/diff/1/src/compiler/typed-optimization.h File src/compiler/typed-optimization.h (right): https://codereview.chromium.org/2280673003/diff/1/src/compiler/typed-optimization.h#newcode5 src/compiler/typed-optimization.h:5: #ifndef V8_COMPILER_TYPED_OPTIMIZATION_H_ nit: Since this is targetting JS-level ...
4 years, 3 months ago (2016-08-26 07:52:14 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/2280673003/diff/1/src/compiler/typed-optimization.h File src/compiler/typed-optimization.h (right): https://codereview.chromium.org/2280673003/diff/1/src/compiler/typed-optimization.h#newcode5 src/compiler/typed-optimization.h:5: #ifndef V8_COMPILER_TYPED_OPTIMIZATION_H_ As discussed offline, we're targetting mostly simplified ...
4 years, 3 months ago (2016-08-26 07:53:58 UTC) #8
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/2280673003/1
4 years, 3 months ago (2016-08-26 07:54:21 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-26 07:58:07 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 07:58:33 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f154c75a39308be6253de351bd4422033ba528fe
Cr-Commit-Position: refs/heads/master@{#38928}

Powered by Google App Engine
This is Rietveld 408576698