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

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

Issue 2519973004: [turbofan] Regalloc validator: support same block pending assessment (Closed)
Patch Set: fix Created 4 years, 1 month 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 | test/mjsunit/regress/wasm/regression-667745.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator-verifier.cc
diff --git a/src/compiler/register-allocator-verifier.cc b/src/compiler/register-allocator-verifier.cc
index 0bc6a32d78fa9ae11ed6cedb4ae778fd7893ff1c..c2c55f52d3f97e44f4083337a3b7490b5670f673 100644
--- a/src/compiler/register-allocator-verifier.cc
+++ b/src/compiler/register-allocator-verifier.cc
@@ -470,7 +470,9 @@ void RegisterAllocatorVerifier::ValidateFinalAssessment(
const PendingAssessment* old = assessment->original_pending_assessment();
CHECK_NOT_NULL(old);
RpoNumber old_block = old->origin()->rpo_number();
- BlockAssessments* old_block_assessments = assessments_[old_block];
+ DCHECK_LE(old_block, block_id);
+ BlockAssessments* old_block_assessments =
+ old_block == block_id ? current_assessments : assessments_[old_block];
ValidatePendingAssessment(old_block, op, old_block_assessments, old,
virtual_register);
}
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-667745.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698