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

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

Issue 1406983004: [Turbofan] Re-enable single splinter. (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 | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/register-allocator.h » ('j') | 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 44e9dba7b58b13e9e80bc82f1a9cb6cb79b47f6a..d81885f68f6fd07b4f207db24cb4cc26e3f771bf 100644
--- a/src/compiler/live-range-separator.cc
+++ b/src/compiler/live-range-separator.cc
@@ -44,12 +44,14 @@ void CreateSplinter(TopLevelLiveRange *range, RegisterAllocationData *data,
if (range->MayRequireSpillRange()) {
data->CreateSpillRangeForLiveRange(range);
}
- TopLevelLiveRange *result = data->NextLiveRange(range->machine_type());
- DCHECK_NULL(data->live_ranges()[result->vreg()]);
- data->live_ranges()[result->vreg()] = result;
-
+ if (range->splinter() == nullptr) {
+ TopLevelLiveRange *splinter = data->NextLiveRange(range->machine_type());
+ DCHECK_NULL(data->live_ranges()[splinter->vreg()]);
+ data->live_ranges()[splinter->vreg()] = splinter;
+ range->SetSplinter(splinter);
+ }
Zone *zone = data->allocation_zone();
- range->Splinter(start, end, result, zone);
+ range->Splinter(start, end, zone);
}
}
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698