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

Unified Diff: src/compiler/live-range-separator.cc

Issue 1424653004: Reland of "[Turbofan] Fix perf regression (patchset #1 id:1 of https://codereview.chromium.org/14121 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/live-range-separator.cc
diff --git a/src/compiler/live-range-separator.cc b/src/compiler/live-range-separator.cc
index d81885f68f6fd07b4f207db24cb4cc26e3f771bf..6591d71e72b3f66a309452cb4d88ea2d2f2109bb 100644
--- a/src/compiler/live-range-separator.cc
+++ b/src/compiler/live-range-separator.cc
@@ -51,6 +51,8 @@ void CreateSplinter(TopLevelLiveRange *range, RegisterAllocationData *data,
range->SetSplinter(splinter);
}
Zone *zone = data->allocation_zone();
+ TRACE("creating splinter for range %d between %d and %d\n", range->vreg(),
+ start.ToInstructionIndex(), end.ToInstructionIndex());
range->Splinter(start, end, zone);
}
}
@@ -112,8 +114,9 @@ void SplinterLiveRange(TopLevelLiveRange *range, RegisterAllocationData *data) {
interval = next_interval;
}
// When the range ends in deferred blocks, first_cut will be valid here.
+ // Splinter from there to the last instruction that was in a deferred block.
if (first_cut.IsValid()) {
- CreateSplinter(range, data, first_cut, range->End());
+ CreateSplinter(range, data, first_cut, last_cut);
}
}
} // namespace
« 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