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

Side by Side Diff: src/compiler/live-range-separator.cc

Issue 1597883002: [turbofan] Skip spill operand ranges from spilled in deferred. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/live-range-separator.h" 5 #include "src/compiler/live-range-separator.h"
6 #include "src/compiler/register-allocator.h" 6 #include "src/compiler/register-allocator.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int first_instr = range->first_interval()->FirstGapIndex(); 113 int first_instr = range->first_interval()->FirstGapIndex();
114 if (!data()->code()->GetInstructionBlock(first_instr)->IsDeferred()) { 114 if (!data()->code()->GetInstructionBlock(first_instr)->IsDeferred()) {
115 SplinterLiveRange(range, data()); 115 SplinterLiveRange(range, data());
116 } 116 }
117 } 117 }
118 } 118 }
119 119
120 120
121 void LiveRangeMerger::MarkRangesSpilledInDeferredBlocks() { 121 void LiveRangeMerger::MarkRangesSpilledInDeferredBlocks() {
122 for (TopLevelLiveRange *top : data()->live_ranges()) { 122 for (TopLevelLiveRange *top : data()->live_ranges()) {
123 if (top == nullptr || top->IsEmpty() || top->splinter() == nullptr) { 123 if (top == nullptr || top->IsEmpty() || top->splinter() == nullptr ||
124 top->HasSpillOperand() || !top->splinter()->HasSpillRange()) {
124 continue; 125 continue;
125 } 126 }
126 127
127 LiveRange *child = top; 128 LiveRange *child = top;
128 for (; child != nullptr; child = child->next()) { 129 for (; child != nullptr; child = child->next()) {
129 if (child->spilled() || 130 if (child->spilled() ||
130 child->NextSlotPosition(child->Start()) != nullptr) { 131 child->NextSlotPosition(child->Start()) != nullptr) {
131 break; 132 break;
132 } 133 }
133 } 134 }
(...skipping 16 matching lines...) Expand all
150 int to_remove = range->vreg(); 151 int to_remove = range->vreg();
151 splinter_parent->Merge(range, data()->allocation_zone()); 152 splinter_parent->Merge(range, data()->allocation_zone());
152 data()->live_ranges()[to_remove] = nullptr; 153 data()->live_ranges()[to_remove] = nullptr;
153 } 154 }
154 } 155 }
155 156
156 157
157 } // namespace compiler 158 } // namespace compiler
158 } // namespace internal 159 } // namespace internal
159 } // namespace v8 160 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698