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

Side by Side Diff: src/compiler/branch-elimination.cc

Issue 2602403002: [Turbofan] run load elimination concurrently. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | src/compiler/common-operator-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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/branch-elimination.h" 5 #include "src/compiler/branch-elimination.h"
6 6
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 BranchElimination::BranchElimination(Editor* editor, JSGraph* js_graph, 15 BranchElimination::BranchElimination(Editor* editor, JSGraph* js_graph,
16 Zone* zone) 16 Zone* zone)
17 : AdvancedReducer(editor), 17 : AdvancedReducer(editor),
18 jsgraph_(js_graph), 18 jsgraph_(js_graph),
19 node_conditions_(zone, js_graph->graph()->NodeCount()), 19 node_conditions_(zone, js_graph->graph()->NodeCount()),
20 zone_(zone), 20 zone_(zone),
21 dead_(js_graph->graph()->NewNode(js_graph->common()->Dead())) {} 21 dead_(js_graph->graph()->NewNode(js_graph->common()->Dead())) {
22 NodeProperties::SetType(dead_, Type::None());
23 }
22 24
23 BranchElimination::~BranchElimination() {} 25 BranchElimination::~BranchElimination() {}
24 26
25 27
26 Reduction BranchElimination::Reduce(Node* node) { 28 Reduction BranchElimination::Reduce(Node* node) {
27 switch (node->opcode()) { 29 switch (node->opcode()) {
28 case IrOpcode::kDead: 30 case IrOpcode::kDead:
29 return NoChange(); 31 return NoChange();
30 case IrOpcode::kDeoptimizeIf: 32 case IrOpcode::kDeoptimizeIf:
31 case IrOpcode::kDeoptimizeUnless: 33 case IrOpcode::kDeoptimizeUnless:
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 306
305 Graph* BranchElimination::graph() const { return jsgraph()->graph(); } 307 Graph* BranchElimination::graph() const { return jsgraph()->graph(); }
306 308
307 CommonOperatorBuilder* BranchElimination::common() const { 309 CommonOperatorBuilder* BranchElimination::common() const {
308 return jsgraph()->common(); 310 return jsgraph()->common();
309 } 311 }
310 312
311 } // namespace compiler 313 } // namespace compiler
312 } // namespace internal 314 } // namespace internal
313 } // namespace v8 315 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698