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

Unified Diff: src/compiler/greedy-allocator.cc

Issue 1320363002: [turbofan] Re-wire greedy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/greedy-allocator.cc
diff --git a/src/compiler/greedy-allocator.cc b/src/compiler/greedy-allocator.cc
index e1f13a64d4d8173850a7c8370071ca0260378410..44f2d4f8160a4893cc3964e21fc0ecb6dd7629e5 100644
--- a/src/compiler/greedy-allocator.cc
+++ b/src/compiler/greedy-allocator.cc
@@ -164,8 +164,12 @@ void GreedyAllocator::PreallocateFixedRanges() {
void GreedyAllocator::ScheduleAllocationCandidates() {
for (auto range : data()->live_ranges()) {
- if (CanProcessRange(range) && !range->spilled()) {
- scheduler().Schedule(range);
+ if (CanProcessRange(range)) {
+ for (LiveRange* child = range; child != nullptr; child = child->next()) {
+ if (!child->spilled()) {
+ scheduler().Schedule(child);
+ }
+ }
}
}
}
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698