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

Issue 2728533003: [turbofan] Enable complex memory operands for binops on ia32/x64 (Closed)

Created:
3 years, 9 months ago by shiyu.zhang
Modified:
3 years, 9 months ago
CC:
Benedikt Meurer, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Enable complex memory operands for binops on ia32/x64 With this change, on ia32 and x64, a load from memory into a register can be replaced by a memory operand for integer binops if it makes sense. BUG= Review-Url: https://codereview.chromium.org/2728533003 Cr-Commit-Position: refs/heads/master@{#43739} Committed: https://chromium.googlesource.com/v8/v8/+/78199ce5e0f3f6597284e0dae25164ccd8e63886

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 8

Patch Set 3 : Add tests #

Total comments: 2

Patch Set 4 : Rebase and Add tests for the 64-bit variants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -51 lines) Patch
M src/compiler/ia32/code-generator-ia32.cc View 1 2 3 3 chunks +20 lines, -25 lines 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 3 3 chunks +23 lines, -4 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 1 chunk +21 lines, -16 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 3 chunks +28 lines, -4 lines 0 comments Download
M test/unittests/compiler/ia32/instruction-selector-ia32-unittest.cc View 1 2 1 chunk +77 lines, -1 line 0 comments Download
M test/unittests/compiler/x64/instruction-selector-x64-unittest.cc View 1 2 3 1 chunk +151 lines, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
shiyu.zhang
On 2017/03/09 05:36:10, shiyu.zhang wrote: > mailto:shiyu.zhang@intel.com changed reviewers: > + mailto:bmeurer@chromium.org, mailto:danno@chromium.org PTAL.
3 years, 9 months ago (2017-03-09 05:37:39 UTC) #3
danno
Andreas, could you perhaps take a look?
3 years, 9 months ago (2017-03-09 06:26:09 UTC) #5
ahaas
Can you add tests for this CL, e.g. in instruction-selector-ia32-unittests.cc? https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc#newcode763 ...
3 years, 9 months ago (2017-03-09 07:10:59 UTC) #6
shiyu.zhang
Hi ahaas, thanks for the comments! I am working on the tests. https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc ...
3 years, 9 months ago (2017-03-09 09:53:17 UTC) #7
shiyu.zhang
On 2017/03/09 09:53:17, shiyu.zhang wrote: > Hi ahaas, thanks for the comments! I am working ...
3 years, 9 months ago (2017-03-10 10:53:35 UTC) #8
ahaas
https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc#newcode763 src/compiler/ia32/code-generator-ia32.cc:763: #define ASSEMBLE_BINOP(asm_instr) \ On 2017/03/09 at 09:53:16, shiyu.zhang wrote: ...
3 years, 9 months ago (2017-03-10 12:02:50 UTC) #9
ahaas
On 2017/03/10 at 10:53:35, shiyu.zhang wrote: > On 2017/03/09 09:53:17, shiyu.zhang wrote: > > Hi ...
3 years, 9 months ago (2017-03-10 12:05:47 UTC) #10
shiyu.zhang
Hi ahaas, tests for 64-bit variants are added. Could you please take a look? https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc ...
3 years, 9 months ago (2017-03-13 02:39:35 UTC) #11
ahaas
lgtm. danno, can you lgtm as well? https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc File src/compiler/ia32/code-generator-ia32.cc (right): https://codereview.chromium.org/2728533003/diff/20001/src/compiler/ia32/code-generator-ia32.cc#newcode765 src/compiler/ia32/code-generator-ia32.cc:765: if (AddressingModeField::decode(instr->opcode()) ...
3 years, 9 months ago (2017-03-13 08:10:57 UTC) #12
Benedikt Meurer
LGTM, very nice! Thanks.
3 years, 9 months ago (2017-03-13 08:14:57 UTC) #14
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/2728533003/60001
3 years, 9 months ago (2017-03-13 08:49:18 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 08:51:00 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/78199ce5e0f3f6597284e0dae25164ccd8e...

Powered by Google App Engine
This is Rietveld 408576698