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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1122423003: [turbofan] Add support for advanced reducers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move comment Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/compiler/osr.cc ('k') | test/cctest/compiler/test-control-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 graph_reducer.ReduceGraph(); 640 graph_reducer.ReduceGraph();
641 } 641 }
642 }; 642 };
643 643
644 644
645 struct EarlyControlReductionPhase { 645 struct EarlyControlReductionPhase {
646 static const char* phase_name() { return "early control reduction"; } 646 static const char* phase_name() { return "early control reduction"; }
647 void Run(PipelineData* data, Zone* temp_zone) { 647 void Run(PipelineData* data, Zone* temp_zone) {
648 SourcePositionTable::Scope pos(data->source_positions(), 648 SourcePositionTable::Scope pos(data->source_positions(),
649 SourcePosition::Unknown()); 649 SourcePosition::Unknown());
650 // TODO(turbofan): enable select matching in early control reduction. 650 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 0);
651 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0);
652 } 651 }
653 }; 652 };
654 653
655 654
656 struct LateControlReductionPhase { 655 struct LateControlReductionPhase {
657 static const char* phase_name() { return "late control reduction"; } 656 static const char* phase_name() { return "late control reduction"; }
658 void Run(PipelineData* data, Zone* temp_zone) { 657 void Run(PipelineData* data, Zone* temp_zone) {
659 SourcePositionTable::Scope pos(data->source_positions(), 658 SourcePositionTable::Scope pos(data->source_positions(),
660 SourcePosition::Unknown()); 659 SourcePosition::Unknown());
661 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), data->common(), 0); 660 ControlReducer::ReduceGraph(temp_zone, data->jsgraph(), 0);
662 } 661 }
663 }; 662 };
664 663
665 664
666 struct StressLoopPeelingPhase { 665 struct StressLoopPeelingPhase {
667 static const char* phase_name() { return "stress loop peeling"; } 666 static const char* phase_name() { return "stress loop peeling"; }
668 667
669 void Run(PipelineData* data, Zone* temp_zone) { 668 void Run(PipelineData* data, Zone* temp_zone) {
670 SourcePositionTable::Scope pos(data->source_positions(), 669 SourcePositionTable::Scope pos(data->source_positions(),
671 SourcePosition::Unknown()); 670 SourcePosition::Unknown());
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 tcf << AsC1VRegisterAllocationData("CodeGen", 1347 tcf << AsC1VRegisterAllocationData("CodeGen",
1349 data->register_allocation_data()); 1348 data->register_allocation_data());
1350 } 1349 }
1351 1350
1352 data->DeleteRegisterAllocationZone(); 1351 data->DeleteRegisterAllocationZone();
1353 } 1352 }
1354 1353
1355 } // namespace compiler 1354 } // namespace compiler
1356 } // namespace internal 1355 } // namespace internal
1357 } // namespace v8 1356 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/osr.cc ('k') | test/cctest/compiler/test-control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698