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

Unified Diff: src/compiler/pipeline.cc

Issue 2388313003: [turbofan] Introduces a step to verify the machine graph. (Closed)
Patch Set: Fix win build. Created 4 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
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 0041da25bf31e00b18b135849e1ddf97c1f2390d..cf64c0585ae2161fc02b0ef960ab8b9de018cae0 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -48,6 +48,7 @@
#include "src/compiler/loop-analysis.h"
#include "src/compiler/loop-peeling.h"
#include "src/compiler/loop-variable-optimizer.h"
+#include "src/compiler/machine-graph-verifier.h"
#include "src/compiler/machine-operator-reducer.h"
#include "src/compiler/memory-optimizer.h"
#include "src/compiler/move-optimizer.h"
@@ -1749,6 +1750,12 @@ bool PipelineImpl::ScheduleAndSelectInstructions(Linkage* linkage) {
info(), data->graph(), data->schedule()));
}
+ if (FLAG_turbo_verify_machine_graph) {
+ Zone temp_zone(data->isolate()->allocator());
+ MachineGraphVerifier::Run(data->graph(), data->schedule(), linkage,
+ &temp_zone);
+ }
+
data->InitializeInstructionSequence(call_descriptor);
data->InitializeFrameData(call_descriptor);

Powered by Google App Engine
This is Rietveld 408576698