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

Issue 2065243005: [arm64] Generate adds/ands. (Closed)

Created:
4 years, 6 months ago by georgia.kouveli
Modified:
4 years, 5 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[arm64] Generate adds/ands. Perform the following transformation: | Before | After | |------------------+---------------------| | add w2, w0, w1 | adds w2, w0, w1 | | cmp w2, #0x0 | b.<cond'> <addr> | | b.<cond> <addr> | | |------------------+---------------------| | add w2, w0, w1 | adds w2, w0, w1 | | cmp #0x0, w2 | b.<cond'> <addr> | | b.<cond> <addr> | | and the same for and instructions instead of add. When the result of the add/and is not used, generate cmn/tst instead. We need to take care with which conditions we can handle and what new condition we map them to. BUG= Committed: https://crrev.com/317dc0578f21a7dd08568cbd802f6bf82b578591 Cr-Commit-Position: refs/heads/master@{#37400}

Patch Set 1 #

Patch Set 2 : [arm64] Generate adds/ands. #

Patch Set 3 : Rebase (needed changes from f5d90fc9f). Will follow with some updates (this is to help reviewing th… #

Patch Set 4 : Fixed issues and added some more tests. #

Total comments: 2

Patch Set 5 : Remove static #

Unified diffs Side-by-side diffs Delta from patch set Stats (+978 lines, -16 lines) Patch
M src/compiler/arm/code-generator-arm.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 2 3 3 chunks +32 lines, -6 lines 0 comments Download
M src/compiler/arm64/instruction-selector-arm64.cc View 1 2 3 4 3 chunks +125 lines, -9 lines 0 comments Download
M src/compiler/instruction.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M src/compiler/instruction-codes.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler/instruction-selector.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M src/compiler/instruction-selector-impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/compiler/test-branch-combine.cc View 1 chunk +448 lines, -0 lines 0 comments Download
M test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc View 1 2 3 1 chunk +317 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
georgia.kouveli
4 years, 6 months ago (2016-06-15 15:45:23 UTC) #3
Benedikt Meurer
Thanks for the patch. It seems to be a bit complex on first sight, though. ...
4 years, 6 months ago (2016-06-16 03:39:32 UTC) #4
georgia.kouveli
Hi Benedikt, On 2016/06/16 03:39:32, Benedikt Meurer wrote: > Thanks for the patch. It seems ...
4 years, 6 months ago (2016-06-16 12:51:27 UTC) #5
Benedikt Meurer
Hey Georgia, Thanks for the explanations. Comments inline. > > Thanks for the patch. It ...
4 years, 6 months ago (2016-06-16 17:59:57 UTC) #6
georgia.kouveli
PTAL. Updated according to your comments. Also rebased to include my VisitBinop fix. Also made ...
4 years, 5 months ago (2016-06-28 15:56:30 UTC) #7
Benedikt Meurer
LGTM with nits (and modulo missing bits to make the other ports compile). Do you ...
4 years, 5 months ago (2016-06-29 03:54:35 UTC) #8
georgia.kouveli
Yes, I plan to port this to ARM. About the other ports: they are using ...
4 years, 5 months ago (2016-06-29 10:00:14 UTC) #9
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/2065243005/80001
4 years, 5 months ago (2016-06-29 14:29:22 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-29 14:54:59 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 14:55:01 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 14:58:02 UTC) #17
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/317dc0578f21a7dd08568cbd802f6bf82b578591
Cr-Commit-Position: refs/heads/master@{#37400}

Powered by Google App Engine
This is Rietveld 408576698