Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 2669b18b529b8902764095c4a9273146ea732798..395cd09b9486cbdccc96fd1c259e596b8b317bb5 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -11,6 +11,7 @@ |
#include "src/compiler/basic-block-instrumentor.h" |
#include "src/compiler/change-lowering.h" |
#include "src/compiler/code-generator.h" |
+#include "src/compiler/control-reducer.h" |
#include "src/compiler/graph-replay.h" |
#include "src/compiler/graph-visualizer.h" |
#include "src/compiler/instruction.h" |
@@ -347,6 +348,16 @@ Handle<Code> Pipeline::GenerateCode() { |
// TODO(jarin, rossberg): Remove UNTYPED once machine typing works. |
VerifyAndPrintGraph(&graph, "Lowered changes", true); |
} |
+ |
+ { |
+ SourcePositionTable::Scope pos(&source_positions, |
+ SourcePosition::Unknown()); |
+ PhaseStats control_reducer_stats(info(), PhaseStats::CREATE_GRAPH, |
+ "control reduction"); |
+ ControlReducer::ReduceGraph(&jsgraph, &common); |
+ |
+ VerifyAndPrintGraph(&graph, "Control reduced"); |
+ } |
} |
{ |