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

Issue 1422333003: [turbofan] optimize redundant moves around splinter sites (Closed)

Created:
5 years, 1 month ago by Mircea Trofin
Modified:
5 years, 1 month ago
Reviewers:
Benedikt Meurer, Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

When we split above an instruction (for example because of splintering), we may introduce moves that are redundant in the context of moves on subsequent instructions. Currently, we only detect such redundancies by allowing moves to skip over Nop instructions (true nops, with no input/output). We can also skip over other cases, for example over constant definitions (nop with an output), since whatever moves happen above it do not influence the instruction's outcome. We may be able to handle other cases, too - in subsequent CLs. BUG= Committed: https://crrev.com/46878c1da1e8dbd386309ac12aad022f4e7761be Cr-Commit-Position: refs/heads/master@{#31662}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -3 lines) Patch
M src/compiler/move-optimizer.cc View 1 3 chunks +41 lines, -3 lines 0 comments Download
M test/unittests/compiler/move-optimizer-unittest.cc View 1 2 1 chunk +39 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (3 generated)
Mircea Trofin
5 years, 1 month ago (2015-10-29 02:11:03 UTC) #3
Jarin
looking good, but I am not a big fan of the global Print functions. https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h ...
5 years, 1 month ago (2015-10-29 07:37:25 UTC) #4
Mircea Trofin
https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h File src/compiler/register-allocator.h (right): https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h#newcode809 src/compiler/register-allocator.h:809: void Print(const RegisterConfiguration* config, const SpillRange* spill_range); On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 14:14:40 UTC) #5
Jarin
https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h File src/compiler/register-allocator.h (right): https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h#newcode809 src/compiler/register-allocator.h:809: void Print(const RegisterConfiguration* config, const SpillRange* spill_range); On 2015/10/29 ...
5 years, 1 month ago (2015-10-29 14:32:13 UTC) #6
Mircea Trofin
On 2015/10/29 14:32:13, Jarin wrote: > https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h > File src/compiler/register-allocator.h (right): > > https://codereview.chromium.org/1422333003/diff/40001/src/compiler/register-allocator.h#newcode809 > ...
5 years, 1 month ago (2015-10-29 14:36:30 UTC) #7
Mircea Trofin
Undid the unrelated Print changes.
5 years, 1 month ago (2015-10-29 14:42:51 UTC) #8
Jarin
lgtm https://codereview.chromium.org/1422333003/diff/60001/test/unittests/compiler/move-optimizer-unittest.cc File test/unittests/compiler/move-optimizer-unittest.cc (right): https://codereview.chromium.org/1422333003/diff/60001/test/unittests/compiler/move-optimizer-unittest.cc#newcode230 test/unittests/compiler/move-optimizer-unittest.cc:230: CHECK(inst1_start == nullptr || inst1_start->size() == 0); Nit: ...
5 years, 1 month ago (2015-10-29 14:53:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422333003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422333003/60001
5 years, 1 month ago (2015-10-29 16:11:00 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-29 16:12:24 UTC) #12
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 16:13:01 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/46878c1da1e8dbd386309ac12aad022f4e7761be
Cr-Commit-Position: refs/heads/master@{#31662}

Powered by Google App Engine
This is Rietveld 408576698