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

Side by Side Diff: src/compiler/common-operator-reducer.h

Issue 1193833002: [turbofan] Proper dead code elimination as regular reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Renamed DeadControl to Dead. Created 5 years, 6 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/common-operator.cc ('k') | 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 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 #ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
6 #define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 15 matching lines...) Expand all
26 MachineOperatorBuilder* machine) 26 MachineOperatorBuilder* machine)
27 : AdvancedReducer(editor), 27 : AdvancedReducer(editor),
28 graph_(graph), 28 graph_(graph),
29 common_(common), 29 common_(common),
30 machine_(machine) {} 30 machine_(machine) {}
31 ~CommonOperatorReducer() final {} 31 ~CommonOperatorReducer() final {}
32 32
33 Reduction Reduce(Node* node) final; 33 Reduction Reduce(Node* node) final;
34 34
35 private: 35 private:
36 Reduction ReduceBranch(Node* node);
37 Reduction ReduceMerge(Node* node);
36 Reduction ReduceEffectPhi(Node* node); 38 Reduction ReduceEffectPhi(Node* node);
37 Reduction ReducePhi(Node* node); 39 Reduction ReducePhi(Node* node);
38 Reduction ReduceSelect(Node* node); 40 Reduction ReduceSelect(Node* node);
39 41
40 Reduction Change(Node* node, Operator const* op, Node* a); 42 Reduction Change(Node* node, Operator const* op, Node* a);
41 Reduction Change(Node* node, Operator const* op, Node* a, Node* b); 43 Reduction Change(Node* node, Operator const* op, Node* a, Node* b);
42 44
43 Graph* graph() const { return graph_; } 45 Graph* graph() const { return graph_; }
44 CommonOperatorBuilder* common() const { return common_; } 46 CommonOperatorBuilder* common() const { return common_; }
45 MachineOperatorBuilder* machine() const { return machine_; } 47 MachineOperatorBuilder* machine() const { return machine_; }
46 48
47 Graph* const graph_; 49 Graph* const graph_;
48 CommonOperatorBuilder* const common_; 50 CommonOperatorBuilder* const common_;
49 MachineOperatorBuilder* const machine_; 51 MachineOperatorBuilder* const machine_;
50 }; 52 };
51 53
52 } // namespace compiler 54 } // namespace compiler
53 } // namespace internal 55 } // namespace internal
54 } // namespace v8 56 } // namespace v8
55 57
56 #endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ 58 #endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698