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

Issue 1219063017: [turbofan] Unit tests for live range conflicts. (Closed)

Created:
5 years, 5 months ago by Mircea Trofin
Modified:
5 years, 5 months ago
Reviewers:
Benedikt Meurer, Jarin
CC:
v8-dev, Jim Stichnoth, jvoung (off chromium)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Unit tests for the live range conflict detection mechanism (CoalescedLiveRanges) in the Greedy Allocator. Consolidated conflict detection and traversal logic in CoalescedLiveRanges to avoid duplication in both code and testing. In addition, this change achieves better separation between CoalescedLiveRanges and other register allocator components, improving testability and maintainability. BUG= Committed: https://crrev.com/3e3608cdd5073965491db95b1fa085db506d468d Cr-Commit-Position: refs/heads/master@{#29783}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Incorporated feedback. #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -157 lines) Patch
M src/compiler/coalesced-live-ranges.h View 1 2 3 4 3 chunks +100 lines, -51 lines 0 comments Download
M src/compiler/coalesced-live-ranges.cc View 1 2 3 4 1 chunk +93 lines, -98 lines 0 comments Download
M src/compiler/greedy-allocator.h View 3 chunks +30 lines, -0 lines 0 comments Download
M src/compiler/greedy-allocator.cc View 1 2 3 4 7 chunks +39 lines, -8 lines 0 comments Download
M src/compiler/register-allocator.h View 1 chunk +4 lines, -0 lines 0 comments Download
A test/unittests/compiler/coalesced-live-ranges-unittest.cc View 1 2 3 4 1 chunk +309 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
Mircea Trofin
5 years, 5 months ago (2015-07-08 20:05:38 UTC) #8
Benedikt Meurer
https://codereview.chromium.org/1219063017/diff/120001/test/unittests/compiler/coalesced-live-ranges-unittest.cc File test/unittests/compiler/coalesced-live-ranges-unittest.cc (right): https://codereview.chromium.org/1219063017/diff/120001/test/unittests/compiler/coalesced-live-ranges-unittest.cc#newcode24 test/unittests/compiler/coalesced-live-ranges-unittest.cc:24: TestRangeBuilder& operator()(int start, int end) { Operator overloading is ...
5 years, 5 months ago (2015-07-13 05:01:25 UTC) #9
Mircea Trofin
https://codereview.chromium.org/1219063017/diff/120001/test/unittests/compiler/coalesced-live-ranges-unittest.cc File test/unittests/compiler/coalesced-live-ranges-unittest.cc (right): https://codereview.chromium.org/1219063017/diff/120001/test/unittests/compiler/coalesced-live-ranges-unittest.cc#newcode24 test/unittests/compiler/coalesced-live-ranges-unittest.cc:24: TestRangeBuilder& operator()(int start, int end) { On 2015/07/13 05:01:25, ...
5 years, 5 months ago (2015-07-13 16:54:08 UTC) #10
Benedikt Meurer
https://codereview.chromium.org/1219063017/diff/140001/test/unittests/compiler/coalesced-live-ranges-unittest.cc File test/unittests/compiler/coalesced-live-ranges-unittest.cc (right): https://codereview.chromium.org/1219063017/diff/140001/test/unittests/compiler/coalesced-live-ranges-unittest.cc#newcode64 test/unittests/compiler/coalesced-live-ranges-unittest.cc:64: Conflicts(int number_of_conflicts, ...) : set_() { Do we really ...
5 years, 5 months ago (2015-07-14 04:35:01 UTC) #11
Benedikt Meurer
https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h File src/compiler/coalesced-live-ranges.h (right): https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h#newcode38 src/compiler/coalesced-live-ranges.h:38: void VisitConflicts(const LiveRange* range, ConstLiveRangePtrToBool visitor) { Higher order ...
5 years, 5 months ago (2015-07-14 05:13:04 UTC) #12
Mircea Trofin
https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h File src/compiler/coalesced-live-ranges.h (right): https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h#newcode38 src/compiler/coalesced-live-ranges.h:38: void VisitConflicts(const LiveRange* range, ConstLiveRangePtrToBool visitor) { On 2015/07/14 ...
5 years, 5 months ago (2015-07-14 15:21:07 UTC) #13
Mircea Trofin
https://codereview.chromium.org/1219063017/diff/140001/test/unittests/compiler/coalesced-live-ranges-unittest.cc File test/unittests/compiler/coalesced-live-ranges-unittest.cc (right): https://codereview.chromium.org/1219063017/diff/140001/test/unittests/compiler/coalesced-live-ranges-unittest.cc#newcode64 test/unittests/compiler/coalesced-live-ranges-unittest.cc:64: Conflicts(int number_of_conflicts, ...) : set_() { On 2015/07/14 04:35:01, ...
5 years, 5 months ago (2015-07-14 16:19:18 UTC) #14
Mircea Trofin
https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h File src/compiler/coalesced-live-ranges.h (right): https://codereview.chromium.org/1219063017/diff/140001/src/compiler/coalesced-live-ranges.h#newcode38 src/compiler/coalesced-live-ranges.h:38: void VisitConflicts(const LiveRange* range, ConstLiveRangePtrToBool visitor) { On 2015/07/14 ...
5 years, 5 months ago (2015-07-15 05:18:46 UTC) #15
Mircea Trofin
Replaced the visitors with an iterator with a scenario-specific design, avoiding STL-like APIs.
5 years, 5 months ago (2015-07-20 23:53:32 UTC) #16
Jarin
https://codereview.chromium.org/1219063017/diff/180001/src/compiler/coalesced-live-ranges.cc File src/compiler/coalesced-live-ranges.cc (right): https://codereview.chromium.org/1219063017/diff/180001/src/compiler/coalesced-live-ranges.cc#newcode66 src/compiler/coalesced-live-ranges.cc:66: break; This continue-break gymnastics looks awkward. How about if ...
5 years, 5 months ago (2015-07-21 08:51:19 UTC) #17
Mircea Trofin
https://codereview.chromium.org/1219063017/diff/180001/src/compiler/coalesced-live-ranges.cc File src/compiler/coalesced-live-ranges.cc (right): https://codereview.chromium.org/1219063017/diff/180001/src/compiler/coalesced-live-ranges.cc#newcode66 src/compiler/coalesced-live-ranges.cc:66: break; On 2015/07/21 08:51:18, jarin wrote: > This continue-break ...
5 years, 5 months ago (2015-07-21 14:51:01 UTC) #18
Jarin
lgtm
5 years, 5 months ago (2015-07-22 04:18:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1219063017/200001
5 years, 5 months ago (2015-07-22 04:19:44 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:200001)
5 years, 5 months ago (2015-07-22 04:50:21 UTC) #22
commit-bot: I haz the power
5 years, 5 months ago (2015-07-22 04:50:34 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3e3608cdd5073965491db95b1fa085db506d468d
Cr-Commit-Position: refs/heads/master@{#29783}

Powered by Google App Engine
This is Rietveld 408576698