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

Issue 738073002: [turbofan]: More optimizations to add and subtract operations on x64 (Closed)

Created:
6 years, 1 month ago by danno
Modified:
6 years, 1 month ago
Reviewers:
titzer
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

[turbofan]: More optimizations to add and subtract operations on x64 - Use "leal" for subtraction of integer constant when non-constant input to subtract is used more than once. - Use "incl", "decl", and "addl" when they are smaller/cheaper than their leal/addl/subl equivalant. R=titzer@chromium.org Committed: https://chromium.googlesource.com/v8/v8/+/5a494cf00ca4626758cc41e0ca800ebb0bff3a9b

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : Latest #

Patch Set 4 : Fix tests #

Total comments: 3

Patch Set 5 : Latest version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -6 lines) Patch
M src/compiler/x64/code-generator-x64.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-codes-x64.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 3 4 2 chunks +50 lines, -1 line 0 comments Download
M test/unittests/compiler/x64/instruction-selector-x64-unittest.cc View 1 2 3 4 chunks +112 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
danno
PTAL. Chump change on zlib.
6 years, 1 month ago (2014-11-19 15:45:03 UTC) #2
titzer
Looks good with a couple comments. https://codereview.chromium.org/738073002/diff/60001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/738073002/diff/60001/src/compiler/instruction-selector.cc#newcode157 src/compiler/instruction-selector.cc:157: bool InstructionSelector::ValueOwnedBy(Node* owner, ...
6 years, 1 month ago (2014-11-20 12:39:24 UTC) #3
danno
https://codereview.chromium.org/738073002/diff/60001/src/compiler/instruction-selector.cc File src/compiler/instruction-selector.cc (right): https://codereview.chromium.org/738073002/diff/60001/src/compiler/instruction-selector.cc#newcode157 src/compiler/instruction-selector.cc:157: bool InstructionSelector::ValueOwnedBy(Node* owner, Node* value) const { On 2014/11/20 ...
6 years, 1 month ago (2014-11-20 13:43:07 UTC) #4
danno
Please take another look
6 years, 1 month ago (2014-11-20 13:43:20 UTC) #5
titzer
lgtm
6 years, 1 month ago (2014-11-20 13:47:50 UTC) #6
danno
6 years, 1 month ago (2014-11-20 13:48:54 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
5a494cf00ca4626758cc41e0ca800ebb0bff3a9b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698