Commit 339bb9ff authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[turbofan] Fix the --turbo-stats tracing flag.

R=mvstanton@chromium.org

Change-Id: Ifc1c8a7ba83f4f877b3dd3cd58ca71febc48b550
Reviewed-on: https://chromium-review.googlesource.com/455737Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43837}
parent c2a53d25
...@@ -995,9 +995,7 @@ struct LoopExitEliminationPhase { ...@@ -995,9 +995,7 @@ struct LoopExitEliminationPhase {
}; };
struct ConcurrentOptimizationPrepPhase { struct ConcurrentOptimizationPrepPhase {
static const char* phase_name() { static const char* phase_name() { return "concurrency preparation"; }
return "concurrent optimization preparation";
}
void Run(PipelineData* data, Zone* temp_zone) { void Run(PipelineData* data, Zone* temp_zone) {
// Make sure we cache these code stubs. // Make sure we cache these code stubs.
...@@ -1303,9 +1301,7 @@ struct AllocateGeneralRegistersPhase { ...@@ -1303,9 +1301,7 @@ struct AllocateGeneralRegistersPhase {
template <typename RegAllocator> template <typename RegAllocator>
struct AllocateFPRegistersPhase { struct AllocateFPRegistersPhase {
static const char* phase_name() { static const char* phase_name() { return "allocate f.p. registers"; }
return "allocate floating point registers";
}
void Run(PipelineData* data, Zone* temp_zone) { void Run(PipelineData* data, Zone* temp_zone) {
RegAllocator allocator(data->register_allocation_data(), FP_REGISTERS, RegAllocator allocator(data->register_allocation_data(), FP_REGISTERS,
...@@ -1542,8 +1538,6 @@ bool PipelineImpl::CreateGraph() { ...@@ -1542,8 +1538,6 @@ bool PipelineImpl::CreateGraph() {
Run<TyperPhase>(&typer); Run<TyperPhase>(&typer);
RunPrintAndVerify("Typed"); RunPrintAndVerify("Typed");
data->BeginPhaseKind("lowering");
// Lower JSOperators where we can determine types. // Lower JSOperators where we can determine types.
Run<TypedLoweringPhase>(); Run<TypedLoweringPhase>();
RunPrintAndVerify("Lowered typed"); RunPrintAndVerify("Lowered typed");
...@@ -1561,6 +1555,8 @@ bool PipelineImpl::CreateGraph() { ...@@ -1561,6 +1555,8 @@ bool PipelineImpl::CreateGraph() {
bool PipelineImpl::OptimizeGraph(Linkage* linkage) { bool PipelineImpl::OptimizeGraph(Linkage* linkage) {
PipelineData* data = this->data_; PipelineData* data = this->data_;
data->BeginPhaseKind("lowering");
if (data->info()->is_loop_peeling_enabled()) { if (data->info()->is_loop_peeling_enabled()) {
Run<LoopPeelingPhase>(); Run<LoopPeelingPhase>();
RunPrintAndVerify("Loops peeled", true); RunPrintAndVerify("Loops peeled", true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment