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

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

Issue 1318493005: [turbofan] relative_id of splinters and their children. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/register-allocator.h ('k') | test/unittests/compiler/live-range-unittest.cc » ('j') | 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 ecf10ae5d64d9a44df3eead45b36bf98d080cf57..482448eb2e6b9dda25c4ab67ee632da0198f426a 100644
--- a/src/compiler/register-allocator.cc
+++ b/src/compiler/register-allocator.cc
@@ -871,6 +871,9 @@ void TopLevelLiveRange::Splinter(LifetimePosition start, LifetimePosition end,
result->top_level_ = result;
result->SetSplinteredFrom(this);
+ // Ensure the result's relative ID is unique within the IDs used for this
+ // virtual register's children and splinters.
+ result->relative_id_ = GetNextChildId();
}
« no previous file with comments | « src/compiler/register-allocator.h ('k') | test/unittests/compiler/live-range-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698