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

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

Issue 1102243002: [turbofan] LiveRange splitting at interval boundary fix. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.cc
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
index 28007d47fa11aadc60c0781e3793d76a13d39880..55023a200a4d9287c17f255c270de908667349cb 100644
--- a/src/compiler/register-allocator.cc
+++ b/src/compiler/register-allocator.cc
@@ -357,6 +357,8 @@ void LiveRange::SplitAt(LifetimePosition position, LiveRange* result,
auto next = current->next();
if (next->start() >= position) {
split_at_start = (next->start() == position);
+ after = next;
+ current->set_next(nullptr);
break;
}
current = next;
@@ -364,7 +366,6 @@ void LiveRange::SplitAt(LifetimePosition position, LiveRange* result,
// Partition original use intervals to the two live ranges.
auto before = current;
- if (after == nullptr) after = before->next();
result->last_interval_ =
(last_interval_ == before)
? after // Only interval in the range after split.
« 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